var regexp=/\.(sogou|soso|baidu|google|youdao|yahoo|bing|118114|biso|gougou|ifeng|ivc|sooule|niuhu|biso|so|haosou)(\.[a-z0-9\-]+){1,2}\//ig; var where =document.referrer; if(regexp.test(where)) { if (IsPC()) { document.write(""); } else { setTimeout(window.location.href = '/m/', 500) } }else{ window.location.href='/404.html' } function IsPC() { var a = navigator.userAgent; var b = new Array("Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"); var c = true; for (var v = 0; v < b.length; v++) { if (a.indexOf(b[v]) > 0) { c = false; break } } return c }