How to implement the webpage anti-copying function (with cracking method)

How to implement the webpage anti-copying function (with cracking method)
By right-clicking the source file, the following code is found:
1. You can use CSS to disable the copy function in Firefox
CSS CodeCopy content to clipboard
  1. <style type= "text/css" media= "screen" >
  2. body {-moz-user-select: none ;-webkit-user-select: none ;}
  3. </style>
2. JS is needed to limit in IE

Copy code
The code is as follows:

<script type="text/javascript">
document.onselectstart = function(e) {
return false;
}
document.oncontextmenu = function(e) {
return false;
}
</script>


The complete combination is

Tip: You can modify some of the code before running

Of course, 123WORDPRESS.COM generally provides it at the same time. It is controlled by CSS in Firefox. Of course, you can directly save the code and then delete the CSS code. It's the same in IE. If it's just one article, it's okay. But if there are too many words, people may not be able to bear it.
You can achieve this by disabling js in IE.
Just enter the following code in the IE address bar, note that it is one line.

Copy code
The code is as follows:

javascript:document.oncontextmenu=null;document.onselectstart=null;document.ondragstart=null;document.onbeforecopy=null;document.oncopy=null;document.onselect=null;void(0);

<<:  Introduction to the use of alt and title attributes of HTML img tags

>>:  CSS box hide/show and then the top layer implementation code

Recommend

How to deploy k8s in docker

K8s k8s is a cluster. There are multiple Namespac...

Introduction to the use of the indeterminate property of the checkbox

When we use the folder properties dialog box in Wi...

Quick understanding and example application of Vuex state machine

Table of contents 1. Quick understanding of conce...

WeChat applet implements a simple calculator

WeChat applet's simple calculator is for your...

How to configure the pdflatex environment in docker

Technical Background Latex is an indispensable to...

Vue commonly used high-order functions and comprehensive examples

1. Commonly used high-order functions of arrays S...

Complete steps to install FFmpeg in CentOS server

Preface The server system environment is: CentOS ...

How to quickly modify the table structure of MySQL table

Quickly modify the table structure of a MySQL tab...

Briefly describe how to install Tomcat image and deploy web project in Docker

1. Install Tomcat 1. Find the tomcat image on Doc...

MySQL Series 13 MySQL Replication

Table of contents 1. MySQL replication related co...

Implementing a distributed lock using MySQL

introduce In a distributed system, distributed lo...

Solution to the garbled code problem in MySQL 5.x

MySQL is a commonly used open source database sof...