1. oncontextmenu=window.event.returnvalue=false 將徹底屏蔽鼠標右鍵
<table border oncontextmenu=return(false)><td>no</table> 可用於table
2. <body onselectstart=return false> 取消選取、防止複制
3. onpaste=return false 不准粘貼
4. oncopy=return false; oncut=return false; 防止複制
5. <link rel=shortcut icon href=favicon.ico> ie地址欄前換成自己的圖標
6. <link rel=bookmark href=favicon.ico> 可以在收藏夾中顯示出你的圖標
7. <input style=ime-mode:disabled> 關閉輸入法
8. 永遠都會帶著框架
<script language=javascript><!--
if (window == top)top.location.href = frames.htm; //frames.htm為框架網頁
// --></script>
9. 防止被人frame
<script language=javascript><!--
if (top.location != self.location)top.location=self.location;
// --></script>
10. <noscript><iframe src=*.html></iframe></noscript> 網頁將不能被另存為
11. <input type=button value=查看網頁源代碼
onclick=window.location = 'view-source:'+ 'http://www.csdn.net/'>
12. 怎樣通過asp的手段來檢查來訪者是否用了代理
<% if request.servervariables(http_x_forwarded_for)<> then
response.write <font color=#ff0000>您通過了代理服務器,& _
真實的ip為&request.servervariables(http_x_forwarded_for)
end if
%>