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 ( w/ mods by DynamicDrive
    //For full source code, visit

    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”)

    // –>

  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.

24 Comments to How To Disable Right Click in Blogger/Blogspot Blogs!

  1. Hi there. I've been following your site for quite sometime and I must admit you're doing teribly great.

    I tried this tip in one of my blogs but it is not working.

    I haven't remove the html code I placed on the blog so maybe you cancheck it out if I did something wrong.

    I guess you can answer my problem also since Im guessing you are exceptionally great. I would like to insert images in my feeds with feedburner but I don't know how to do it.can you help me? Or can you make an entry about this?

    Another one, I'm observing a site who has a widget placed on the right side of his blog. The widget automatically list down at least 5 newest articles about a certain topic. This is powered also by feedburner. How about a blog entry also on this?

    • Thank you so much!

      I've wanted to protect my images (all original photos), but since I'm not tech-savvy, manipulating the html code in my blogger template proved too difficult. You're instructions for a widget add-on were attainable, and it works like a charm.

      Thanks again –


  2. @ Karl : Have you followed everything correctly? This is a plain simple trick and does not need any expertise. I guess you have written the above code in a Text widget! Make it sure that you have posted this in a HTML/JavaScript widget :)

    Feel free to comment here for any problems.

    Thanks for your suggestions. Will surely post about formatting images in feed soon. And I did not get you, you mean to say that blog is showing recent 5 posts from a particular label using a feedburner widget?

    And yes, thanks for your kind words.

  3. sure, i'll gonna check it again. hope it will work this time

    yes, you got it. it's "posts from a particular label using a feedburner widget" that's the right term

    Thanks Bapun.. Im waiting for these posts

  4. Jennifer

    I have tried this so many times and it is not working. the words right click disable show up on the right side of my blog, so I know its there but its not working. Can you please guide me

    Layouts/page elements

    add a Gadget

    HTML/Java Script a box pops up with title and body paragragh and this is where I copied and pasted your html code for this.

    I then rightclick on my picture and sure enough you can save it and it is not working.

    in the right hand side of my blog it says rightclick disable as if it did recieve ityet its not applying it. please help if you dont mind thanks Jennifer

  5. Well, I guess this is not working perfectly. I tried applying this on one blogger blog, but the right click is still working there. wait for sometime till i come up with an another trick to block right click on blogger blogs.

  6. Jennifer


  7. hello, i istalled the code and it worls on the main page but i still can click on the picture and it will open in a bigger size and i still can copy it. i just cant copy it if i click right right away on the homepage. but i would like to protect my pictures of being copied. hope u can help me.

  8. If they left click on an image and it opens in a new window, then right click is no longer disabled.. Is there any way to disable right click after they click on the picture where its a new screen with a full sized pic? Because if someone can left click on it to have the pic pop up then right click protection is gone~ Thanks for any help!

  9. guys just watermark ur pics and they cant copy them for example my site is just add text to ur image saying (

    its simple!

    thanks ~brad

  10. DiggerKing

    This would only disable the right clicking but if the user highlight the content and press ctrs+c then she/he could still copy and paste your site content.

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=""> <s> <strike> <strong>

What is 12 + 13 ?
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) :-)