host = window.location.host
host2=document.domain
if(host!="xxx.com") alert("illegal")
获取当前请求路径var href = location.href
if(href.indexOf("baidu")>-1){
//跳转
location.href = "http://baidu.com"
}
host = window.location.host
host2=document.domain
if(host!="xxx.com") alert("illegal")
获取当前请求路径var href = location.href
if(href.indexOf("baidu")>-1){
//跳转
location.href = "http://baidu.com"
}