禁止保存网页的代码、禁止右键代码、禁止复制粘贴等网页代码
2012-03-25 15:16
295 查看
网页禁止保存代码为:
<noscript><iframe src="*.htm"></iframe></noscript>
本机ip<%=request.servervariables("remote_addr")%>
服务器名<%=Request.ServerVariables("SERVER_NAME")%>
服务器IP<%=Request.ServerVariables("LOCAL_ADDR")%>
服务器端口<%=Request.ServerVariables("SERVER_PORT")%>
网页禁止被缓存的代码 ASP
<%
Response.Expires = 0
Response.ExpiresAbsolute = Now() - 1
Response.CacheControl = "no-cache"
%>
1.将彻底屏蔽鼠标右键,无右键菜单
<body oncontextmenu="window.event.returnvalue=false">
也可以用于网页中Table框架中
<table border oncontextmenu=return(false)><td>no</table>
2.取消选取、防止复制
<body onselectstart="return false">
3.不准粘贴
<body onpaste="return false">
4.防止复制
<body oncopy="return false;" oncut="return false;">
5.IE地址栏前换成自己的图标
<link rel="Shortcut Icon" href="favicon.ico">
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";// --></script>9.防止被人frame
<SCRIPT LANGUAGE=javascript><!--
if (top.location != self.location)top.location=self.location;
// --></SCRIPT>
<input style="ime-mode:disabled">
9.查源文件
<input type=button value=查看网页源代码
onclick="window.location = 'view-source:'+ 'http://www.e3i5.com/test.htm';">
10.屏蔽功能键Shift,Alt,Ctrl
<script>
function look(){
if(event.shiftKey)
alert("禁止按Shift键!"); //可以换成ALT CTRL
}
document.onkeydown=look;
</script>
11.光标是停在文本框文字的最后
<script language="java script">
function cc()
{
var e = event.srcElement;
var r =e.createTextRange();
r.moveStart("character",e.value.length);
r.collapse(true);
r.select();
}
</script>
<input type=text name=text1 value="123" onfocus="cc()">
<noscript><iframe src="*.htm"></iframe></noscript>
本机ip<%=request.servervariables("remote_addr")%>
服务器名<%=Request.ServerVariables("SERVER_NAME")%>
服务器IP<%=Request.ServerVariables("LOCAL_ADDR")%>
服务器端口<%=Request.ServerVariables("SERVER_PORT")%>
网页禁止被缓存的代码 ASP
<%
Response.Expires = 0
Response.ExpiresAbsolute = Now() - 1
Response.CacheControl = "no-cache"
%>
1.将彻底屏蔽鼠标右键,无右键菜单
<body oncontextmenu="window.event.returnvalue=false">
也可以用于网页中Table框架中
<table border oncontextmenu=return(false)><td>no</table>
2.取消选取、防止复制
<body onselectstart="return false">
3.不准粘贴
<body onpaste="return false">
4.防止复制
<body oncopy="return false;" oncut="return false;">
5.IE地址栏前换成自己的图标
<link rel="Shortcut Icon" href="favicon.ico">
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";// --></script>9.防止被人frame
<SCRIPT LANGUAGE=javascript><!--
if (top.location != self.location)top.location=self.location;
// --></SCRIPT>
<input style="ime-mode:disabled">
9.查源文件
<input type=button value=查看网页源代码
onclick="window.location = 'view-source:'+ 'http://www.e3i5.com/test.htm';">
10.屏蔽功能键Shift,Alt,Ctrl
<script>
function look(){
if(event.shiftKey)
alert("禁止按Shift键!"); //可以换成ALT CTRL
}
document.onkeydown=look;
</script>
11.光标是停在文本框文字的最后
<script language="java script">
function cc()
{
var e = event.srcElement;
var r =e.createTextRange();
r.moveStart("character",e.value.length);
r.collapse(true);
r.select();
}
</script>
<input type=text name=text1 value="123" onfocus="cc()">
相关文章推荐
- 网页禁止保存复制代码大全
- 禁止鼠标右键保存图片、禁止拖动图片的代码
- 网页禁止右键和另存为代码
- 网页禁止右键,选择文字,拖甩鼠标破解代码
- 网页禁止保存复制代码大全
- 最简单的代码实现禁止鼠标右键及选中网页中的文字,支持Firefox,亲测可用
- html网页禁止鼠标右键、选择、拷贝、粘贴、保存等
- js鼠标禁止右键、复制粘贴代码
- 网页禁止右键、禁止查看源代码、禁止复制和另存为的代码
- 网页禁止保存复制代码大全
- 禁止另存网页、屏蔽选中、粘贴、复制、剪切、右键菜单程序代码
- JavaScript禁止粘贴,禁止右键,禁止保存代码
- 禁止网页右键、全选CTRL+A、复制的代码
- js鼠标禁止右键、复制粘贴代码
- 网页禁止右键代码
- 网页防复制,禁止文字选中,禁止右键菜单js代码,兼容大部分浏览器方法
- js鼠标禁止右键、复制粘贴代码
- 网页禁止右键代码
- 网页禁止右键、禁止查看源代码、禁止复制的代码
- 网页禁止右键代码各类代码大全