Everyone who does SEO knows that publishing original articles is very good for optimizing their website, especially when searching for article titles, original works are generally ranked first. But optimization is for search engines to see. There is a headache on the Internet. Who is the original article for search engines? This is not certain. Let me give you a simple example: For example, you published a high-quality original article on your blog (of course, assuming that your blog has a low daily visits, with only a few hundred people per day). But within a few hours or days, someone reprinted it on a large portal website that does not bring your articles original links, such as A5. So after a while, when you search for the title of the article, it is hard to say who ranks first. I have had this kind of personal experience. For this reason, in order to make us persist in being original authors have the passion to continue to be original. Here is a way to teach you how to prevent the content of the web page from being copied directly. Compatible with IE and Firefox. OK, look at the code:
Copy the following js code into your js file (this code is for IE):
<script language="javascript">
=new Function("=false;"); //Selecting is prohibited, that is, it cannot be copied
</script>
Copy the following code into your css file (this code is for firefox):
<style type="text/css">body{-moz-user-select:none;}</style>
The above is the entire content of this article, I hope you like it.