Learn Tech Blogging!

How to Protect your Website Content from Copying


The content of the site, which is not unique, can lead to the dropping out of the index of the pages or to a decrease in their ranking (the original in the issue can be displayed lower than the competitor’s pages with the copied content). Trying to keep their content unique to site owners often wonder. Here we’ll show you, how to protect your valuable content from copying?

Below are Important ways to improve the protection of content. But before you go to them, it is worthwhile to clarify which content should be protected: published author’s articles, descriptive text on the pages of the company’s services or descriptions on the cards of the goods in the online store? Since not all methods are universal and only suitable ones are needed for oneself. Protect text on the main page or on the pages of sections

The content on these pages is copied, mainly by hand. Therefore, the following methods are applicable here:

1. Using the script to prohibit copying

On the page, you can add a script that will not allow the user to manually select and copy the text.

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

The above script disables the selection of part of the text, and disables the context menu in the entire document if the attacker wants to open the page code.

The disadvantage of this method is that users sometimes click on the links by clicking the right mouse button. Such scripts can create a number of inconveniences and reduce the number of page views of your site, and accordingly, the conversion to targeted actions.

This method is easily circumvented by opening the source of the page through the main menu of the browser, or by disabling scripts in the browser and copying the necessary without any prohibitions. However, the likelihood of the theft of the text by an inexperienced “copywriter” will significantly decrease.

2. Prevent text selection in CSS styles

Similar to the previous method, but you can no longer use the script, but register a separate style (for example, the “noselect” class) in which you can not select text. Add this css code above </head> .

<style type="text/css">
.noselect {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;

This method has fewer shortcomings: by disabling scripts, the ability to select text will not be anyway, and disabling styles in the browser is more difficult, however, this method is also all too easy to get around if you open the HTML code of the page.

3. Use of the company name in the text

For such pages where the services are described, it is possible to organically insert the name of the company (site) into the text so that when the copy is copied the editor had to do a rewrite, this will reduce the probability of usefulness of such text for competitors and its use.

4. Social signals

Search engines determine the source of the content by the date of its indexation and the authority of the site. Social signals can add a bit of credibility to the pages, and if the pages are new – help them to be indexed faster. Therefore, it’s good to suggest to visitors that they keep on hooking and tweaking these pages, and also sometimes carry out these operations themselves.

5. Insert links to your site in the text of the article

Robots often copy the article “as is”, so if it contains links leading to the desired site, the search engines correctly determine the source content, plus you can get free back links. You can insert them both to the original news, and to other publications of the resource (using contextual relinking).

The drawback of this method is that, nevertheless, programmers delete (cut out) links or change them to their own. Therefore, in addition to references, you can also insert the company name (as in the first method) or your name as the author of the publication. Even though there will not be any links, it is always possible (in case of problems) to file a claim with Yandex or Google support.

6. Use Google Authorship Google

Allows you to link documents to your profile on Google+ . In addition, that in the search results there will be an avatar of the author, it can still help in determining the authorship of the content (according to Google representatives).

Here the advice is to write articles or news not under the name “admin”, but to sign them with your real name-surname.

To assign an article to authorship and display an avatar on Google, you must link to your profile in Google+ on all author pages and specify a link to the site or individual articles in the profile settings. More details on how to do it technically are written here and here .

Not always linking content to the Google+ profile helps, but as an additional signal it is recommended to use.

7. Other Scripts

Add this code in your body tag to disable right click

onselectstart="return false;"

For example

<body onselectstart="return false;">

Disable Right Click and Keyboard Copy Function

<script type="text/javascript">
var isCtrl = false;
if(e.which == 17)
if(e.which == 17)
if((e.which == 85) || (e.which == 67) && isCtrl == true)
// alert(&#8216;Keyboard shortcuts are cool!&#8217;);
return false;
var isNS = (navigator.appName == "Netscape") ? 1 : 0;
if(navigator.appName == "Netscape") document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);
function mischandler(){
return false;
function mousehandler(e){
var myevent = (isNS) ? e : event;
var eventbutton = (isNS) ? myevent.which : myevent.button;
if((eventbutton==2)||(eventbutton==3)) return false;
document.oncontextmenu = mischandler;
document.onmousedown = mousehandler;
document.onmouseup = mousehandler;

$(window).bind('keydown', 'ctrl+s', function () {
      return false;

Final Words

We hope you will find these methods useful to secure your website content. If you know any other content protection method then feel free to commenting. We will update this article by adding your new method.

Rate This Post!
[Total: 0 Average: 0]