A huge copy of the world's articles! Many excellent original articles can be uploaded over the Internet at night. All SEO personnel know that the optimization of their own website is very good when sending original articles, especially when searching for the title of an article, the original is generally ranked first. However, the optimization is for search engines. However, there is a headache on the Internet. An article is about who is original to search engines. This is not necessarily true. For example, you have published a high-quality Original article on a blog (assuming that your blog has low daily traffic and hundreds of people every day. However, after a few hours or days, people have been reposted to a large portal website without original links to your articles, such as A5. In a short time, when you search for the title of an article, it is hard to say who ranks first. I have such experiences. To this end, we insist that original authors have the passion to continue originality. Next we will share with you how to prevent webpage content from being copied directly. Compatible with IE and Firefox. Okay. Check the Code:
Copy the following js Code to your js file (this code is for IE ):
<Script language = "javascript"> document. onselectstart = new Function ("event. returnValue = false;"); // disable the selection, that is, it cannot be copied. </script>
Copy the following code to your css file (this code is for firefox ):
<style type="text/css">body{-moz-user-select:none;}</style>Articles you may be interested in
- Prohibit web page right-click, copy, save as, View Source file and other functions to implement web page source code protection
- How to prohibit search engines from indexing website content
- Js obtains the height of the scroll bar from the top and bottom of the browser. It is compatible with ie and firefox.
- Chrome (Google chrome) does not support form. submit ($ ('form'). submit) Solution
- How does jquery obtain the browser type and version number?
- JQuery obtains the height and width of the visible area of the browser window, and the height of the scroll bar.
- Summary of JS methods for determining browser types (IE firefox chrome opera safari)
- Disable the list directory using. htaccess