四、根据访客来源跳转的JS代码

1、JS判断来路代码
此段代码主要用于百度谷歌点击进入跳转,直接打开网站不跳转:

2、JS直接跳转代码

3、ASP跳转代码判断来路
<%
  if instr(Request.ServerVariables("http_referer"),"www.baidu.com")>0 then
  response.redirect("http://www.mahaixiang.cn/")
  end if
  %>
4、ASP直接跳转的
<%
  response.redirect("http://www.mahaixiang.cn/")
  %>

原文地址:https://www.cnblogs.com/chen991126/p/14049812.html