取得IP
rs("ip")=request.servervariables("remote_addr")
禁止网页另存
在头文件中加上以下代码
<noscript>
<iframe src="*.htm"></iframe>
<iframe src="*.asp"></iframe>
</noscript>
禁止右键和拷贝
方法1
<body bgcolor="F2F2F2" leftmargin="0" topmargin="0" oncopy="event.returnValue=false" oncontextmenu="self.event.returnValue=false" ondragstart="self.event.returnValue=false">
方法2
<body leftmargin="2" topmargin="0" marginwidth="0" marginheight="0" oncontextmenu="return false" ondragstart="return false" onselectstart ="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false" onmouseup="document.selection.empty()