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.

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.
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?
@edward, I don’t get your question.
Thx..its work for me.. visit my blogspot here >>naruto-wikia-bm.blogspot.com <--new blogspot
Thanks for sharing. Its good to see fresh content always.
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.
@War Wolf, I don’t seem to understand you.
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
thanks a lot! it really works!
http://cutemedpassion.blogspot.com/
it works but still a post can be copied by using ctrl+v….pls any solution for this??
There is NO SOLUTION for this problem with Javascripts! Only CSS codes working! But there is no CSS code for this YET! So it’s sucks:))
@David Barbara, the CSS solution is available. Check http://www.justnaira.com/2014/01/stop-copy.html for more information.
It wont work for me.
i’ve used this code ..
it seems workin’ but people still can copy the image by click the image first and then copying it.. 🙁