找回密码
 立即注册
首页 程序园 前端 如何插入JS跳转/框架代码,避免搜索引擎识别 ...

如何插入JS跳转/框架代码,避免搜索引擎识别

新程序 3 天前
一、简单粗暴的JS跳转代码:

  1. <p>top.location.;</p><p></p>
复制代码

优点:简单

缺点:简单,容易被搜索引擎识别

二、延时跳转

比上面的仅仅加了个延时的功能、不推荐

三、JS判断来路代码

  1. <p>var r=document.referrer;</p><p>if(r.indexOf("google")>0 || r.indexOf("baidu")>0 || r.indexOf("sogou")>0 ){</p><p>location.;</p><p>}</p>
复制代码

以上代码 是判断搜索来路跳转

四、全屏框架代码

  1. document.writeln('<iframe src="https://www.网址.com/" rel="nofollow" scrolling="no" frameborder="0" w
复制代码


您需要登录后才可以回帖 登录 | 立即注册