绿野仙踪's Archiver

阿喀琉斯 发表于 2007-10-29 22:30

清空代码防止查看源代码的方法

[code]<html>:cdjh:l*yoK!w
<head>0W,y?^|IRz-D
<script language="javascript">1Dz*d4cN,v1u*Ek'wG2X
function clear(){
aZ N/U"hA1A         Source=document.body.firstChild.data;
MJNj;}5n         document.open();
b(IM f-Go'`'f         document.close();9b,nHS%d!YA*n
        document.title="看不到源代码";
*SB'?ih+GQv         document.body.innerHTML=Source;S~:@.uD1?
}
\K l QhR$} </script>y]LW R1c/^+n4vF
</head> h'R}Bx}?B
<body onload=clear()>#X"h5? \s*BT2p W
<!--m6~!nWz5iL$W _ i
这招算是目前网上公布的防止查看源代码的方法中最好的了,当然了,要看还是办法的,比如在地址栏中输入<br>^"c%s,Q!h9V
javascript:alert(document.documentElement.outerHTML); FDB_s8|
-->D P)j#AiuK;u%fL
</body>
0c0f4X+n'k!o%};B </html>[/code]

页: [1]

Powered by Discuz! Archiver 7.0.0  © 2001-2009 Comsenz Inc.