
當(dāng)網(wǎng)站被人鏡像時,可以試試往程序里增加防鏡像代碼??梢园汛a放到 (【模板參數(shù)設(shè)置】-[商業(yè)版專屬]-導(dǎo)航下方文字廣告)
<script type="text/javascript">
rthost = window.location.host;
if (rthost != "www.www.feiyangblg.com") {
top.location.href = "http://www.otcms.com";
}
demo = false;
</script>
<div style="display:none;">
<img src="" onerror='setTimeout(function(){if(typeof(demo)=="undefined"){window.location.href="www.otcms.com";}},1000);'>
</div>
由于有些鏡像網(wǎng)站采集時會過濾掉JS和一些代碼,故上面藍(lán)色字代碼可以進(jìn)行“js代碼混淆”處理下(在線js代碼混淆網(wǎng)址:http://tool.chinaz.com/tools/jscodeconfusion.aspx),降低被過濾的可能性。
混淆后代碼如:
<div style="\x64\x69\x73\x70\x6c\x61\x79\x3a\x6e\x6f\x6e\x65\x3b"><img src="" onerror='\x73\x65\x74\x54\x69\x6d\x65\x6f\x75\x74\x28\x66\x75\x6e\x63\x74\x69\x6f\x6e\x28\x29\x7b\x69\x66\x28\x74\x79\x70\x65\x6f\x66\x28\x64\x65\x6d\x6f\x29\x3d\x3d\x22\x75\x6e\x64\x65\x66\x69\x6e\x65\x64\x22\x29\x7b\x77\x69\x6e\x64\x6f\x77\x2e\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x2e\x68\x72\x65\x66\x3d\x22\x77\x77\x77\x2e\x6f\x74\x63\x6d\x73\x2e\x63\x6f\x6d\x22\x3b\x7d\x7d\x2c\x31\x30\x30\x30\x29\x3b'></div>
這樣混淆后所有代碼是:
<script type="text/javascript">
rthost = window.location.host;
if (rthost != "www.www.feiyangblg.com") {
top.location.href = "http://www.www.feiyangblg.com";
}
demo = false;
</script>
|
網(wǎng)鈦淘寶店 版權(quán)保護(hù)登記號:2013SR057730
閩公網(wǎng)安備35010402351296號 閩ICP備17002817號-2