How to Disable Right Click on Blogger to Prevent Copying Content


I run a career blog where graduates can find latest job vacancies in Nigeria so I noticed some people are copying my blog content to their blog and they claim to be the owner of the post. What I did to curb this was to add a simple JavaScript code to my blog to disable right click option to prevent others from copying contents and images on my blog.

How-to-disable-right-click-on-blogger

Today, I will explain how, and the code I added to my blog to prevent this.
The simple JavaScript code is:

<script>
var message="Right click is disabled!!";
function clickIE4(){if (event.button==2){alert(message);return false;}}
function clickNS4(e){if (document.layers||document.getElementById&&!document.all){if (e.which==2||e.which==3){alert(message);return false;}}}
if (document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS4;
else if (document.all&&!document.getElementById){document.onmousedown=clickIE4;}
document.oncontextmenu=new Function("alert(message);return false")
</script> 

How to Add the Code to Blogger Blogs

#1. Login to Blogger > Go to Layout > Add a Gadget > Click on  HTML/JAVASCRIPT

#2. A window will pop out, then paste the JavaScript above into the pop up window.

#3. Now click on Save

If you follow the tutorial above carefully, nobody will be able to copy your blog contents and images again.


I love sharing my knowledge with others. Feel free to contact me with any questions you may have. Please subscribe to the newsfeed and get updates through email, share this article with friends, or leave a comment below. New users can read about me HERE

Share this on:Facebook6Twitter0Google+1Pinterest1StumbleUpon0Digg

Comments

  1. That is goo, i like it. Me also i was trying to copy some images and was copyrighted. but when i right a section of text and click on view selected source. i could copy it. any technique to solve it?

  2. Thx..its work for me.. visit my blogspot here >>naruto-wikia-bm.blogspot.com <–new blogspot

  3. Thanks for sharing. Its good to see fresh content always.

  4. this is wonderful, I had stopped posting pics on my blog because of copy thieves. painful i am just finding out about this now. Thanks a lot for this.

  5. @War Wolf, I don’t seem to understand you.

  6. I want to change the “ok” button to my own text. how can i do that please guide me
    Get free blogger followers http://thewarwolf.blogspot.com/2012/08/freebloggerfollowers.html

  7. thanks a lot! it really works!

    http://cutemedpassion.blogspot.com/

  8. KRUNAL INTWALA says:

    it works but still a post can be copied by using ctrl+v….pls any solution for this??

  9. kavyasarita says:

    It wont work for me.

  10. ✖wani ✖☻music ♫lovers☻ツ says:

    i’ve used this code ..
    it seems workin’ but people still can copy the image by click the image first and then copying it.. :(

Tell us what you're thinking...

All comments are moderated.

* Denotes required field.

*