Disable right click in Blogger

·

·

,

I think every blogger faces a problem regarding copying of contents. Many of the online users visit the site  and so the chance of copying the content remains open. so one should disable the option of right click in the blog so that one can’t select and copy the content.
Also read : Linkwithin related posts for Blogger
You can do the steps in blogger so that right click will not work and hence one can’t do copy – paste in the blogger. It is important to activate in a blogspot blog beacuse some  Bloggers do many efforts by researching and then writing a great article for their website, whereas some body just visit the website and does copy and paste article for his blog or website. so to prevent this we need to deactivate the right click in the blogspot blog as we see many websites donot allow right click.

How to Disable the right click :

  • Go to Blogger Dashboard
  • Click on layout and then after Click on add a gadget
  • Select add a html/javascript widget
  • Paste the following code in the body section and leave the upper portion i mean title as blank
  • Click on save and check in your blog, right click is not working.
<script language=javascript>

var message=”Function 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>

 

 



Leave a Reply

Your email address will not be published. Required fields are marked *

8 responses to “Disable right click in Blogger”
  1. Niraj Bhusal Avatar

    Thanx Sanjay for this post
    I think this is a good idea to protect our site. Is there something for the WordPress too?

  2. aris_jay2002 Avatar

    Well, I think I will have to give this post a go and see what happens……

  3. Ryan Biddulph Avatar

    Quick easy and smart tip Sanjay, thanks dude!

    Ryan

  4. Suresh Khanal Avatar

    Well, I disabled right clicking for some time (I used digiprove for my WordPress blog) but later on realized that I am doing more harm than good and then removed locking.

    In fact, genuine readers need to copy and organize for their purpose and while trying to stop leeches we caused difficulty to the good use. Though we disable right click, the copy-cats can easily get our content through View Source. So, what’s the use? We only stopped good users.

  5. sanjay choubey Avatar

    Suresh sir thanks for being here. yeah you are right but this trick will protect direct copy and paste from your website and i think online users will not prefer to copy the content from view source since it will increase the further steps. they will jump to other website for copying the content and hence due to less chance, website will be protected.

  6. sanjay choubey Avatar

    Thanks Ryan brother. keep appreciating me. i will keep posting these useful steps.

  7. Shameem Thaha Avatar

    Hey bro disabling right click its an nice method but they can easily copy from view source as like suresh bro said between nice post

15 Years Experienced SEO freelancer
Call me at – 8802309980 or WhatsApp Now