当前位置: 首页 > 图文教程 > 网络编程 > Javascript > 防止网站内容被拷贝的一些方法与优缺点好处与坏处分析

Javascript
form中限制文本字节数js代码
use jscript with List Proxy Server Information
use jscript List Installed Software
List Installed Software Features
List Information About the Binary Files Used by an Application
List the Codec Files on a Computer
List the UTC Time on a Computer
List Installed Hot Fixes
excel操作之Add Data to a Spreadsheet Cell
Add Formatted Data to a Spreadsheet
Apply an AutoFormat to an Excel Spreadsheet
JavaScript语法着色引擎(demo及打包文件下载)
类之Prototype.js学习
一款JavaScript压缩工具:X2JSCompactor
iis6+javascript Add an Extension File
jscript之Open an Excel Spreadsheet
jscript之Read an Excel Spreadsheet
jscript之List Excel Color Values
去除图像或链接黑眼圈的两种方法总结
Add a Formatted Table to a Word Document

Javascript 中的 防止网站内容被拷贝的一些方法与优缺点好处与坏处分析


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-12   浏览: 69 ::
收藏到网摘: n/a

他依次作了以下设置:

1、用js禁用了鼠标右键、Ctrl+A等键,实现方式看如下代码:
<body onmouseup="document.selection.empty()" oncontextmenu="return false" onmousemove="document.selection.empty()" oncopy="document.selection.empty()" onselect="document.selection.empty()">

2、用Table截断字符顺序。
看下面的实际方式,这样如果直接Copy内容到记事本,次序会乱的。

微软日前公告了一份需
自己的以及第三方软件,总
要经过调整才能与Windows XP S
数大约有50款。
P2兼容的软件清单,清单包括微软

我见过其他防Copy的方式:

1、打开的窗口是一个没有菜单的窗口,这时候,再禁用鼠标右键,当前窗口页,你无法直接察看源代码。

2、在显示Html数据的时候,有大量的白色字被加了进来,这样,copy的时候,中间被加了大量的垃圾信息。比如如下代码:

给自己带来麻烦了,而且不利于搜索引擎的收录,大量的垃圾白字