How to hack one of the ways to prevent copy-paste and cracking on a website

**First of all, we need to know that the realization of the function of prohibiting copying and pasting of a website is generally realized by using jsp.
It is generally achieved by the following statement: **

var bodyMain = document.getElementById ('bodyMain');

     //实现禁止复制,将返回结果设置为FALSE
     bodyMain.oncopy = function(){
       return false;
    }
     //实现禁止粘贴,将返回结果设置为TRUE
     bodyMain.onpaste = function(){
       return false;

}
After knowing how to implement it, we can prescribe the medicine, such as disabling js. Let’s take Google Chrome as an example:
Open Google Chrome to the page where you want to copy the content, press F12 to open the developer tools, press F1 to go to the settings interface, and
check the options as shown in the figure:
**Write picture description here**

Hahaha, don't close the developer page, if you are too troublesome to make it smaller, I found in the article at this time that the original article can be copied.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325901499&siteId=291194637