Pin It

Widgets

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.


Stay Informed, Inspired and Motivated With Our Free Daily Tips. Add Your Email Now, Don’t Worry, Your Email Address Is Secure:
Enter your email address:

Confirm Your Email Address After Subscribing
We hate spam just as much as you do.


Enjoyed This Article? Follow us on Facebook or Twitter or add us to your circle on Google+ for our new updates.

9 comments so far. What are your thoughts?

Unknown said...
Reply To Comment

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

चित्रालय || CHITRALAY said...
Reply To Comment

It wont work for me.

Unknown said...
Reply To Comment

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

bianca sio said...
Reply To Comment

thanks a lot! it really works!

http://cutemedpassion.blogspot.com/

Unknown said...
Reply To Comment

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

Admin said...
Reply To Comment

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

Anonymous said...
Reply To Comment

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.

open source developer said...
Reply To Comment

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

Muhamad Lukman said...
Reply To Comment

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

Click Here to Leave a Comment

Don't just read and walk away, Your Feedback Is Always Appreciated..

Note:
Please do not spam, spam comments will be deleted immediately upon review.

Like US on Facebook