How To Disable Right Click in Blogger/Blogspot Blogs!

By -

You might have seen websites with no right clicking on their pages. This is just to minimize the risk of content copy. The right mouse button won’t work in their sites, basically used to select contents & copy or to save images. Blocking or disabling right click will make other things work normally, people can view and surf everything, all they can’t do is copying any text or image from your site. And now we can apply this blocking trick to disable right click in blogger/blogspot blogs.

To block people from copying text or image from your blogger/blogspot blogs, you need to disable right click. And in order to do this, you need to add a code to your blog. This code needs to be added in the page elements page as a new widget. Follow the below steps.

  1. Log into your blogger dashboard.
  2. Navigate to your blog’s Layout >> Page Elements page.
  3. Now add a new widget by navigating to Add a Gadget >> HTML / JavaScript
  4. Add the following code to HTML / JavaScript box.
  5. <script language=”JavaScript”>
    <!–

    //Disable right mouse click Script
    //By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
    //For full source code, visit http://www.dynamicdrive.com

    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>

  6. Save the widget and you are done.

Now no one can steal your contents as you have disabled right clicking on your blogger blog. But still I would like to advise you not to do this. It might affect innocent people from copying some necessary codes from your blog. You can deal with those people who steals your content in a legal way. Read what to do when someone steals your blog post contents?

Also Read : How To Copy Text & Save Images From Right Click Disabled Websites

Soumya is the admin and founder of Techcular. He loves to discover and learn new things on Internet. You can find him writing on his personal blog few times.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

What is 4 + 4 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)