|
<script>document.write(unescape(String.fromCharCode(105,109,50,56,54,46,99,111,109)));</script>
只要把你要加密的文字以上面的形式存在就可以预防 99% 的采集软件来采集你的数据.
为了避免有人说我 AD ,就不公布加密的页面.
现在已可完全融合到管理系统的作当中,如果你有好的加密或解密方法可以加我的QQ,大家一起讨论,本人将有好的东西赠送与你.
示例1:加密要播放的音乐地址:
<script language='javascript'>
Path=String.fromCharCode(119,109,97,47,78,101,119,49,46,119,109,97);
document.write('<OBJECT classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 ');
document.write('type=application\/x-oleobject width=380 height=45 border=0 id=aboutplayer>');
document.write('<PARAM NAME=URL value='+unescape(Path)+'>');
document.write('<PARAM NAME=rate VALUE=1>');
document.write('<PARAM NAME=balance VALUE=0>');
document.write('<PARAM NAME=currentPosition VALUE=0>');
document.write('<PARAM NAME=defaultFrame VALUE=>');
document.write('<PARAM NAME=playCount VALUE=100>');
document.write('<PARAM NAME=autoStart VALUE=-1>');
document.write('<PARAM NAME=currentMarker VALUE=0>');
document.write('<PARAM NAME=invokeURLs VALUE=-1>');
document.write('<PARAM NAME=baseURL VALUE=>');
document.write('<PARAM NAME=volume VALUE=80>');
document.write('<PARAM NAME=mute VALUE=0>');
document.write('<PARAM NAME=uiMode VALUE=full>');
document.write('<PARAM NAME=stretchToFit VALUE=-1>');
document.write('<PARAM NAME=windowlessVideo VALUE=0>');
document.write('<PARAM NAME=enabled VALUE=-1>');
document.write('<PARAM NAME=enableContextMenu VALUE=false>');
document.write('<PARAM NAME=fullScreen VALUE=0>');
document.write('<PARAM NAME=SAMIStyle VALUE=>');
document.write('<PARAM NAME=SAMILang VALUE=>');
document.write('<PARAM NAME=SAMIFilename VALUE=>');
document.write('<PARAM NAME=captioningID VALUE=>');
document.write('<PARAM NAME=enableErrorDialogs VALUE=0>');
document.write('</OBJECT>');
</script>
示例2:加密网址,HTML代码如下
<script>document.write(unescape(String.fromCharCode(104,116,116,112,58,47,47,119,119,119,46,105,109,50,56,54,46,99,111,109,47,118,105,101,119,116,104,114,101,97,100,46,112,104,112,63,116,105,100,61,49,53,54,52,48,48,52,38,101,120,116,114,97,61,112,97,103,101,37,51,68,49)));</script>
只要把上面的字符放在 HTMl 的非代码区就可以显示正常的本贴地址.
此行代码可分为两重半加密,这主要的前两重也是现有采集器最头疼的!
1、利用 fromCharCode 进行读取字符数字化字符串,把所有要显示的以数字形式存在
2、利用 unescape 进行读取用 escape 方法进行了编码的字符串
3、被采集的数据大都有结构规则,而用上面方法再增加判断规则的难度,所以算半重. |
|