此段代码主要用于百度谷歌点击进入跳转,直接打开网站不跳转:
<script language="Javascript">
var s=document.referrer
if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 )
location.href="https://www.xxx.cn/";
</script><script language="Javascript">
location.href="https://www.xxx.cn/";
</script><%
if instr(Request.ServerVariables("http_referer"),"www.baidu.com")>0 then
response.redirect("https://www.xxx.cn/")
end if
%><%
response.redirect("https://www.xxx.cn/")
%>
]]>