PHP教程:
1.禁止右鍵
<body oncontextmenu=return(false)>
2.禁止選擇
<body onselectstart="return false">
3.禁止粘貼
<body onpaste="return false">
4.禁止直接訪問 [必須框架內才行]
<script>
if (top == self)top.location.href = "page.htm";
</script>
5.禁止frame引用
<script>
if (top != self)top.location.href = "page.htm";
</script>
6.禁止功能鍵Shift,Alt,Ctrl
<script>function key(){
if(event.shiftKey) alert("Shift不允許使用!");} document.onkeydown=key; </script>