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){
return false;

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
return false;

if (document.layers){
else if (document.all&&!document.getElementById){

document.oncontextmenu=new Function(“alert(message);return false”)





  1. says

    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.

  2. says

    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.

Leave a Reply

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