Home > Web Front-end > JS Tutorial > body text

Use js to prohibit copying text information_javascript skills

WBOY
Release: 2016-05-16 15:56:41
Original
1508 people have browsed it

Everyone who does SEO knows that publishing original articles is very good for optimizing your own website. Especially when searching for article titles, original articles generally rank first. But optimization is for search engines. There is a very troublesome problem on the Internet. Who is the original author of an article to search engines? This is not certain. Let’s take a simple example: For example, you publish a high-quality original article on your blog (assuming, of course, that your blog’s daily visits are very low, just a few hundred people every day). But within a few hours or days, it was reposted to a large portal website that did not provide an original link to your article, such as A5. Then after a while, when you search for the title of the article, it will be hard to say who ranks first. I have this personal experience. For this reason, our authors who insist on creating original works have the passion to continue to create original works. Here is a trick to teach you how to prevent web content from being copied directly. Compatible with IE and Firefox. Okay, let’s look at the code:

Copy the following js code into your js file (this code is for IE):

Copy code The code is as follows:


Copy the following code into your css file (this code is for firefox):

Copy code The code is as follows:


The above is the entire content of this article, I hope you all like it.

Related labels:
js
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template