Stop Your Visitors From Doing Copy and Paste of Your Blogs Contents

Mon, Oct 12, 2009, by Mythili Kannan

Blogging

Are you much annoyed of the users who just do copy & paste of your work? This code may help you.

You might have spent hours together to think, analyze, to do research and reframe your work, before putting them into words in your blogs. You might have spent some more time and investments in bringing traffic to those websites. But few days later, you might have got shocked, by seeing someone else blog too having the same content, without even a single word change. They will be earning at the cost of your work.

Image via Wikipedia

Generally it is a normal phenomena, that one’s hand will automatically do ctrl+A to select the work, ctrl+c to copy the work and ctrl+v to paste the work, if they are attracted by the work. It looks like a simple money earning scheme. Won’t you go mad, if you get to see such things happen to you? Do you want to stop them from doing so?

Here is an easy and simple code, which you can add in your blogs HTML code. If you are a techie, you might have already found this out. But this is a simple code, so any one can make use of it. No need of being a techie or super brainy.

Image via Wikipedia

The main three ways to do copy & paste of work are:

1.       Go to ‘Edit’ tab. Click Select All and then copy. Later paste it in a word document or notepad.

2.       Right click the mouse. Do select all and copy, paste.

3.       Drag the mouse to highlight the entire content and then copy & paste

So, we need to avoid all these three steps. The code does this. Go through the code and I have explained the code below.

Image via Wikipedia

Add this code between your head tag.

var debug = true;function right(a){if (navigator.appName == ‘Netscape’ && (a.which == 3 || a.which == 2)) return false; else if (navigator.appName == ‘Microsoft Internet Explorer’ && (event.button == 2 || event.button == 3)){alert(’Sorry Friend, I Blocked COPYING’);return false;}return true;}document.onmousedown=right;if (document.layers) window.captureEvents(Event.MOUSEDOWN); window.onmousedown=right;

Add this below code in your body tag

ondragstart=”return false” onselectstart=”return false”

The line , in the code stops the visitor from doing drag and copy. Also it stops them from doing through the Edit tab also.

You will be having the tag already in your code. Add the rest of the code in the line shown above. The Javascript code stops the visitors from doing right click to select and do copy of the page.

Give a try, and stop those lazy visitors who do copy & paste work.

Note

After publishing this article, I found that the code is not coming properly if I give the entire code with the format including tags. So if you are really interested and want a clear code, send me message and I’ll send you the code in a document form, so that you can easily understand.

12
Liked it

10 Comments For This Post

  1. cutedrishti8 Says:

    thanks for this I will definetly try this..will be very helpful

  2. chitragopi Says:

    It seems great, but can’t understand much of it. If you don’t mind I shall get bak to u?

  3. Mythili Kannan Says:

    Sure Chitra, u can get back to me

  4. Monica Sappleton Says:

    Thanks my friend. I’ll definitely use this code. Another great and resourceful write.
    Monica.

  5. Francois Hagnere Says:

    Very interesting and useful. I would like to get back to you too for more details. Thank you.

  6. CaSundara Says:

    I found the only article I actually bothered checking had been published several times in it’s entirety. I will be in touch for that code shortly… Great advice, thanks so much for sharing!

  7. Mythili Kannan Says:

    Yes friends, you can get in touch with me, for clarifications. For those who messaged me already, plz check your message box. I already sent the code. Thanks.

  8. Deepockets732 Says:

    Yes, thank you. This is very interesting. Can you please send code? Thank you, Deepockets

Leave a Reply