Website encryption Raiders complete works

xiaoxiao2021-03-31  209

Now there are more and more professional websites, many netizens build their own small house online. However, Xin Xi's hard-working page is a very painful thing, so everyone wants to protect their own original works, lock the lock on their own web, let me take you to our understanding how to give us Web pages plus a password lock.

First, often use JavaScript password lock

1. Learn from JavaScript

JavaScript is a new web description language, which is developed by Sun Company and Netscape, Netscape, which can be embedded in the HTML file, using it to design interactive web content.

2. JavaScript Features

It is very simple to use JavaScript, just a small code, you can make web pages have a misery effect, and how to encrypt the JavaScript is the most commonly used method in the network.

3. Encryption using JavaScript

The easiest result using JavaScript encryption is to let the viewer unable to use the mouse button, when he clicks right click to save or copy the text, a warning window is popped up or pops up.

Implementation:

(1) To block the mouse button with the pop-up window

Put the following code in the flag of the web page HTML code, you can realize the right button to encrypt the web page.