Home > Article > Web Front-end > Some methods and advantages and disadvantages of preventing website content from being copied_javascript skills
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
|
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