Home > Web Front-end > JS Tutorial > Some methods and advantages and disadvantages of preventing website content from being copied_javascript skills

Some methods and advantages and disadvantages of preventing website content from being copied_javascript skills

WBOY
Release: 2016-05-16 19:07:47
Original
1360 people have browsed it

He made the following settings in sequence:

1. Use js to disable the right mouse button, Ctrl A and other keys. See the following code for implementation:

2. Use Table to truncate the character sequence.
Look at the actual method below. If you copy the content directly to Notepad, the order will be messed up.

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

its own and third-party software, totaling
It needs to be adjusted to be compatible with Windows XP S

There are about 50 models.

P2 compatible software list, including Microsoft

I have seen other ways to prevent copying:


1. The open window is a window without a menu. At this time, if you disable the right mouse button, you will not be able to view the source code directly on the current window page. 2. When displaying Html data, a large amount of white text is added. In this way, when copying, a large amount of junk information is added in the middle. For example, the following code:

aaaaaaYouraaaaaacontent. These show your content, but there will be problems with copying. Advantages:

can indeed bring some trouble to copying and collection, but if it is better to collect, white fonts can be replaced with regular expressions

Disadvantages: It brings trouble to yourself, and it is not conducive to search engine inclusion. There is a lot of junk white text
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template