How to Disable Right click in Blogger / Blogspot ?

Have you noticed, that some web sites do not allow their visitors using right mouse click while pointer is on the blog area. This option is useful for the site and blog owners, who want to minimize the possibilities of the content direct copying to other posts.

Right click on any internet browser is very important element and we must use it when it comes to copy or editing texts and etc. It’s very important when it comes to webmasters too. but some people may use it in a bad way, and you may want to make click right disabled on your blog. to protect you text, images links and etc.

To setup this tool in your blog Copy the Following code and paste it to your blog by adding a new page element.

Step 1 : Go to Dashboard > Layout > Add Gadget > HTML / JavaScript
Step 2 : Copy the code from this file and paste it in that blogger widget.
Step 3 : Save the html/javascript and view you blog.

When you will try to do right click, a message will tell you that “Function disabled” , and if you want to change this words” Function Disabled” Then simply find it in code and replace it.

Get Free Updates in Your Inbox!


Share This Post On Social Network

Related posts:

Blogger Tutorial: Speed Up Your Blogspot Blog
7 iPhone Apps For Better Fitness
Turn Your Passion into Your Income Through Blogging
How to Find Ideas for Business Start-Ups

Article by VISHAL

Editor-in-Chief and Owner of Being Geeks. Software Engineer, Open Source Enthusiast and Tech Blogger. Catch him on Facebook and Twitter.


VISHAL has written 401 awesome articles. If you like This post, you can follow us on Twitter. Subscribe to feed via RSS

182 Responses to “How to Disable Right click in Blogger / Blogspot ?”

  1. Karie McRae says:

    Thank you so much! I can’t tell you how much I appreciate this.

    • Vishal Gaikar says:

      I am glad that it worked for you Karie

      • daisy says:

        Vishal, .. after having browsed through 100s and 100s of different webpages for days that had content describing the procedure one needs to follow in order to disable right clicking, happened to see your site!! this is the best site so far in terms of the clear instructions you offer people on the disabling process. However, i am unable to do so to my wordpress .. also once i follow what you have described, how do i know if the option has been disabled on my page?? i am unable to do so on other sites of mine, cant paste anything into my html header.

      • daisy says:

        is there any way i can make this work for my wordpress site, thank you so much!!

      • Tavi says:

        Thank you so much it works

      • Aan Antony says:

        Thank you Thank you Thank you….

    • Alba says:

      Thank you thank you thank you! ! ! I really appreciate it. I tried several codes and this one was the only that worked :)

    • Faustex says:

      Dude you rock man!!! I was almost at the point of paying someone to do it for me. Thank you so much, I really appreciate your help.

  2. Karie McRae says:

    I sent the wrong site address.

    • Vishal Gaikar says:

      No problem.. Got it correct now :)

      • Sherry says:

        Hi Vishal,
        So cool. You are the man!. I didnt’ even have to try second time, just followed your direction and I got it. I have a question could you do this in the face book too? and if yes how do we do that in the face book?

        thanks

  3. vampyre says:

    Awesome!!
    Thanks so much. Worked beautifully :)

  4. shan says:

    nice post. and i requet u on facebook.

  5. amg says:

    Thank you so much for posting these instructions, worked beautifully!

  6. Ashish says:

    Thanks Vishal for sharing. But unfortunately when I clicked on the link ‘code from this site’, a new webpage opens with no contents displayed. Will you please check and let me know whether I need to perform any other step or something like that.

    Many thanks for looking into this.

    Best regards,
    Ashish

  7. Debbie says:

    Awesome. Thank you.

  8. Chasity says:

    Is there a way to make this work only for the post content and not the sidebar? I would like to allow copying of code in the sidebar but this is blocking the whole page. Thanks!

  9. ZuQha says:

    Wao,
    Yeah I was searching for this, :-) well i dont like to do this on my blog :p it will not make my visitors happy.. Well thanks for this. I will also try to write a tutorial for this on my blog.
    Thanks

  10. Karen Hill says:

    This has really helped me. Thank you. I’ve been looking for ages how to stop people grabbing my photos from my blog. Thanks.

  11. moonshine says:

    thank you

  12. this works on the first try, but if a person hits the right click again, the same function appears again with option to check a box to disable this from happening again.
    how to fix that?

    • Gold Tommy10 says:

      no it just prevents the popup from coming but right click is still disabled

      • Navin says:

        I tried this and after clicking on ‘do not show the popups again’, I am able to right click and copy :(
        How can I fix this?

        • Sarah says:

          I’m finding this to be true as well…once you hit “refresh” it goes back to being protected for 1 or 2 clicks, but the option to keep from showing the message comes up again and then, allows right click and copy. I’m not comfortable with that level of protection. How can we make it ALWAYS protect my blog/images, etc.

          Thank you!
          Sarah

  13. bhai bibek says:

    very nice good tips thanks alot..

  14. adnan says:

    VISHAL GAIKAR ,
    Thanks Vishal, I never forget ur invisible help,

  15. Rhea says:

    Thank You so much! I am always worried that someone out there might try to take things off my site! I shared your page with my friends on FB, I’m sure they will use you!

  16. Awais says:

    it worked for me so simple thnx alot dear your sharig is owesome

  17. Cathy says:

    Simple and effective. Thank you.

  18. kovai sakthi says:

    tnk you sir it works great

  19. Rachel says:

    Thanks so much! I ran into another blog that was like this. I wondered where I could find it.

  20. Lizan says:

    Thanks a lot, I’m using this in my blog.

  21. gopinath p says:

    i want to hide right click and save link as on my site but this is not working.. : ( wat to do

  22. LuckyFM says:

    it’s not working :(
    what’s the problem VISHAL ??

  23. Boss u r just awesome. thanks for the valuable code. Worked perfectly for my blog. It is my first blog and being something related to photographs, i was very concerned abt the security of my pics from being copied. thanks a ton again!

  24. yozenbalki says:

    Dear Friend! It is very much useful and used it now in my blog with great reverence on you!
    I missed a script sometime back, and this is more easier than the former. Thanking you once again!
    Mohan Balakrishna
    Counseling Psychologist/Chennai-India
    http://www.yozenbalki.blogspot.com

  25. Sandhani says:

    Hey i always wanted to protect the contents of my blog and yes i did it today.Thank you for the code!!!

  26. Hi Vishal, this was an easy fix for my blog. Thanks so much for sharing.

  27. Thanks a lot for this. Someone grabbed photos from my site and posted them on theirs and have been looking for ways to avoid this from happening again. So again, big thank you =)

    • Michelle says:

      Oh my gosh! The nerve of some people! Too lazy to do the work themselves so they steal from other hard working photographers! It just astounds me how people can just expect to piggyback their way to success! As a fellow photographer, it ticks me off so bad! I am doing this to my site right now:)

  28. Shayna says:

    Thank you. It work for my blog.

  29. Shahed says:

    This code is not working on blogspot dynamic preview plz help me how to stop right click on my blogspot dynamic website

  30. Reddy says:

    Thank you very much, with this code i secured my blog, now no body can copy my information.

  31. thanks for the gadget, sure made disable right click easy!

  32. chittampally kirran says:

    thanks a lot brother,its very easy to do..

  33. AK Rai says:

    I used the code but I dont know how position of my blog post is changed to left column. What should I do to refix it? please help me.

  34. Tina says:

    Hi,

    I tried this code on my blogspot, but it still lets people right click and download the images. Please help! Not sure why it doesn’t work.

  35. diya says:

    thank you !! It Works..

  36. ashwani says:

    thanks dear///

  37. Ann says:

    Is there a way to utilize this code on Tumblr?

  38. Jamie says:

    Thank you SO much!!

  39. Desmond says:

    Thank you so much~~~~~~~~~~~

  40. Azdaja says:

    Thank you Vishal!

  41. vow… It really works well…Thank you..

  42. shinenhing says:

    Hi Vishal.. this works perfectly on my blog.. thanks for the great info! :)

  43. Chekgu Mahir says:

    TQ very much.. it works for site too!

  44. farhan says:

    thank you sir!!

    But is there any way to stop anyone from copying completely from my blog?

    As they can use mouse for this purpose

    Thank nd regard
    Md Farhan Khan

  45. dda says:

    You guys realize that whatever can be done in Javascript can be undone the same way? And that for every link that says “how to disable right click” there’s a link that says “How to enable right click”? Besides, just (trying futilely to) preventing right-click won’t protect your images: a quick look at the HTML source is all you need…

  46. psp says:

    Hi I am able to use this on my blogger .. but not wordpress.com… why is that? If it requires separate code, can you please provide that too :)

  47. Price says:

    Thanks I have many problem with others which love to copy from my website

  48. A says:

    How to prevent LEFT mouse click, too? :) Now you can click a photo open when clicking a left button :(

  49. lovely.willow says:

    Thank you so much, sir! This is exactly what I needed!

    I recently found out someone had been stealing my blog posts for 5 years and I am both appaled and shocked.

    The google report abuse function is horrible and there is no guarantee they will take action either.

    I hope you can give me suggestions on how to take down a phony website immediately. My blog traffic is pretty high it is obvious this person is trying to increase his traffic using my posts.

    I hope you can keep in touch with me.

  50. jon says:

    I tried this, the prompt does come up saying that right click is not available but as soon as that prompt closes it goes to the next page showing the full page view of the photo and guess what? When you right click again it lets you copy the image no problem.

  51. chyroxiah says:

    thank you so much,…it’s really work.. ;) )

  52. THANK YOU SO MUCH! You are an absolute star!! Cheers!!!

  53. Arlene says:

    Finally, a script that actually works.
    Thanks soooooooooo much for this.

  54. Theresia says:

    Thank you so much! The BEST!!

  55. nalliah says:

    In my previous blog-traditional template, this code was working. Now, in dynamic view template,
    this code does not work.. pl help.

    with regards,
    nalliah.k

  56. Tabloid Kpop says:

    Thank you vishal, it’s really work…^_^

  57. Laminoo says:

    THANKS A LOT. love it.

  58. Shani says:

    Hi~

    Thanks for the code; I’ve installed it and it’s working as I had hoped. The only problem is that it will not allow me to click on any link now that’s on my page. I had only wanted to stop people from stealing content, not from clicking on a link. Is there a way to correct this?

    Thanks again,
    Shani

  59. I was curious if you ever thought of changing the page layout
    of your website? Its very well written; I love what youve got
    to say. But maybe you could a little more in the way
    of content so people could connect with it better. Youve got an awful lot of
    text for only having 1 or 2 pictures. Maybe you could space it out
    better?

  60. Paris says:

    I’m trying he code but it isnt working on my site any suggestions on why? :/ Help Please.

  61. its really work very fast and very good for data being stole. Thanks very much

  62. Kris says:

    Thank you so much! This code worked perfectly!

  63. DoniREaD says:

    thank’s. it’s very help me.
    come to my blog:
    kata-kata-hari-ini.bligspot.com

  64. cadgupta says:

    sr pls tell me my java/html script file not save
    plzzzzzzzzz rly me

  65. Soikot says:

    This is good…bt i dnt need alert …..nw what can i do?

  66. Annonymous says:

    Thanks That Helped! But It Is Annoying! People can still copy though!

  67. Annonymous. says:

    Is there a way that u can just disable it without any messaging or messaging the first time. People can still copy your ideas and left click drag to new tabs (On Google Chrome!)

  68. Sansar says:

    Your java script does not work when someone uses ” CTRL C ” after selecting the text, one can easily copy the text then. Any suggestion?

  69. Columba Lisa says:

    Thank you so much for these clear, easy to use instructions! This was no problem at all, and that’s saying something for me! I used this feature on my blog and on my daughter’s. Really appreciate it.

  70. Sagartrajan says:

    Love U ! Forever!

  71. shubhajit says:

    hey vishal thanks for your post its work for me and try my code (not really mine) for dishabiling
    select all and share with your friends…..

  72. Thanks a lot. It works.

  73. Vishal says:

    One can still use the ‘ctrl+c’ function to copy the blog text. Doesn’t work!!!!

  74. palin says:

    Thanks so much :-)
    This worked wonderfully.
    The pics on my blog feel a bit safer now.
    :-)

  75. Magda says:

    Thank you so much for this! It works like a charm.
    I have been looking to add this to my blog.

  76. The Mommist says:

    You’re a superstar! Thanks for this code!

  77. praveen says:

    It is very beautiful and works Good …..I have implemented on anakapalli.in it disables right click but we can copy by using ctrl+c

  78. anveshi says:

    pls let me know in detl.. how to create copyright of my blog

  79. Ayushi Jain says:

    I am not able to click on save button. Nothing is happening after i click on save or in fact save button is not working.

  80. Mel says:

    Thank you for this!

  81. Lamu says:

    hey. . can u please help me on this It’s not working on mine. . thanks in advance :)

  82. Masakan says:

    Work good on my blog, but on second clicks showing check box “prevent this page from creating additional dialogs”

  83. amna says:

    thankyou vishal.its realy kind of you to share this.thanks alot.it worked ^_^

  84. Silvia says:

    Hi. Thank you. It worked very well.

  85. brilliant! thank u so much for this. however does this work in blogger dynanic views?

  86. Mye says:

    thank you so much! this worked!
    But not with the dynamic view though…

    Still thanks!

  87. Prateek Tyagi says:

    Sir if we prevent form creating additional dialogs then in next right click all the right click functions are available,whi it is so.plz help

  88. Manoj says:

    Thank you so much..really very helpful. God bless.

  89. Joni says:

    When I try to open the code I get an another tab with nothing in it–blank. Suggestions?

  90. Jeff says:

    Thanks. Worked like a charm!!

  91. Valerie says:

    Thank you so much for posting this, I have recently been made known to other people using photos on blogs for their own personal use and when I googled my sons name, a ton of pictures of my blog popped up, I have been wanting to disable right-click for a long time.
    Do you happen to have a ‘how-to’ on how to allow the link someone clicks on to open in a new tab?

  92. firstd says:

    thank you sooooooooooo much! I’m passing this along to my other friends and family that have blogs!! you’re a life saver:) have a wonderful day!!

  93. Ijhe says:

    GOD BLESS YOU! THANK YOU!

  94. Hassan says:

    I want to change the “ok” button to my own text. how can i do that please guide me

  95. Charles says:

    Hey thanks so much for this! It worked absolutely fine!

  96. cherrie says:

    why i open the code from this file page cant see anything at there T-T

  97. cherrie says:

    sorry, now i can see the scrip but why when i 1st time right click they show the box is “Function Disabled” but 2nd time i click,they show “Function Disabled”and bottom have a box show [prevent this page form creating addional dialog] if i tick the box and press ok then i can save the pic already,so why??

  98. ~willa~ says:

    Thank you so much! It works perfectly!

  99. MackDamage says:

    Thank You! So much. I literally spent hours trying to find something to suit my Blogger needs. I only found stuff for “Word Press”.

    Thank You!

  100. Bikebrains says:

    The code works in IE9 but the code does not work in Firefox 14.0.1. In Firefox the Function Disabled message is issued, I click OK then the Firefox right click box appears.

    • Bikebrains says:

      I did a little more research. In Firefox 14.0.1 the user must allow scripts to disable or replace context menus. To find this control start with Tools, go to Options, Content,Enable JavaScript, Advanced,Allow scripts to disable or replace context menus. I tested it with your gadget and found that the gadget can be blocked with the default of not allow.
      Another article at http://www.dreamincode.net/forums/topic/224741-disable-right-click-in-firefox-4/ said to use window.oncontextmenu = function() { return false } . The comment is dated 2011.
      Any ideas?

  101. [...] I am happy to tell you.  It was so easy. I just typed it in to Google.  First one I found was THIS SITE with THIS LINK.  You just copy the code into your Add HTML gadget & stick it anyplace on your [...]

  102. Marg Martins says:

    Hello thank you a lot for this, but there’s 3 problems:
    - when someone clicks more than twice on the picture a dialog box appears to disable that function, than you can copy.

    - mozilla has an Add-on called “take a screenshot”, allows you to copy the image

    - on mozilla’s tools menu you can see the page code, choose “media” and save the image you want

    yes unfortunately if you have a blog there’s allways a way to copy us, there’s several data protection web sites, but still not enough for the ones that like to just copy paste all our work.

  103. Zigsta says:

    Worked perfectly! Thank you very much! I will bookmark this page for future reference!

  104. purevegbites says:

    Hi Vishal,

    How can I disable right click on my WordPress.com blog.

    Please help me

    Thanks
    Pure vegetarian bites

  105. kamran says:

    Thanks..Now it working on my Blog.
    has any disadvantages of it?

  106. mcxwintrade says:

    thnks, it really works..

  107. tiffany says:

    hey thanks a lot for this post! i have posted that as my entry too. is it okay for you? thankyou! :)

  108. Hi Vishal,

    How can I disable copy by keboard (Ctr+C) on my blogsite.

    Please help me

    Thanks
    Laboni

  109. itin says:

    This does not work because you plagiarizers can still use the keyboard shortcut to copy the article.

  110. Bustom says:

    well im going to try 1st how bout the shortcut copy paste?

  111. Dexter says:

    I never thought i could implement this on my site…. :)
    That’s a super slick but super simple!

    My little site is now “rigth-click” disabled!
    Har-har-har!

    Thanks a lot man.
    :)

  112. ceparie says:

    Thanks for clear, concise instructions that work! I know the very clever can find a workaround to copying but this code will deter most and also sends a clear message that the author prefers they don’t.

  113. Jo says:

    Thanks so much! Worked like a charm =).

  114. silvia says:

    Thank you very much. Its work fine

    Silvia

  115. pakgaol says:

    hi Vishal,
    Every people says… your script worked, may, they are a newbie…just kidding.

    Vishal, I have try your script, it’s worked, but do you have try to click tree or four times?
    after tree times right click, dialogue show up and chek the option…

    your script unwork………..

    Thanks

  116. Thank you so much! I was looking for something that prevents someone copy my content, and I found here. I think there is some “experts guys” that can keep copy content, but for the 95% of the people It´s impossible now. Keep your good work.

  117. kavita says:

    Thanks for the code… I was earlier adding code to every post!

    Could you possibly come up with a version 2 of this code which additionally diables ctrl-a and ctrl-c?

    I had put both the codes earlier from different sources, but 1/ it added a field which i did try to hide by making it the same background (not v neat) and the right click stopped working, only the ctrl-a and ctrl-c was working. this is for a blog for a photographer friend.

    thanks again…

  118. thank you so much for sharing this code i like it

  119. Krystal says:

    Wow! Thank you! This is a great help. =)

  120. slowhand says:

    for dynamic view blogger! paste the code in post editing html (right) section.

  121. Macx Z says:

    Thanks bro, really helpful :D

  122. Ola says:

    wow, that was easy. THANK YOU!!!!

  123. Ajit Kumar says:

    thx dud….

    thank you very much

    it work very nice

  124. Sarah says:

    Thank you so much!! I’ve been wanting to do this for so long and you made it so simple!

  125. Ankit kohli says:

    but people can still do it by ctrl+c option….any way to stop that also???

  126. mati says:

    Works 100%
    i wanted to protect my html links :D
    now they can’t skip adf.ly , yahooooooooooooooooo

  127. Elly says:

    Omgg thank you!!

  128. Thank you for your post! Very useful!

  129. irene says:

    Thank you so much!!! What can I do now with the function ctrl+c and ctrl+v ?

  130. Iris says:

    Thank you very much for your help!!! It works!!! I was wondering if I can do the same with the ctrl+c !

  131. Rick says:

    Hi, this feature is great, i am wondering if there is away then when the pop up message comes up it should display the persons IP? This way i can have the message say somthing like, your IP xxx.xxx.xx.xxx has been logged.

  132. SM says:

    Nice Article.. though to prevent text copying completely, disabling text selection is a better option

  133. ville says:

    Thanks Man!

  134. Syafira says:

    Thanks for the code! it worked but how to disable grabbing photo? Yea, the image can’t be right-clicked, but i can drag the image to the new tab so they can steal my stuff. thanks :D

  135. renny says:

    Hi, thanks for sharing this trick…really appreaciate it !
    Have tried it on my blog and it WORKS !!
    Again, thanks!

  136. Blob says:

    Worthless.

    A friends blog used this, and it stopped me not at all.

    I immediately though of using the menus, which worked just fine to copy stuff.

    Edit/select all, Edit/copy

    Draged an image to another tab.

    View/view source, then copy and past URLs with mouse or otherwise.

    Worthless, ineffective, ignorant.

  137. sohaib says:

    it is working and like no one can use my contents :D thanks dear :)

  138. Danny says:

    Thanks a lot, it works great.

  139. Pooja says:

    Thank you so much! Really appreciate!

  140. Fey Roslan says:

    Thanks for sharing this tutorial! :)

  141. hichem says:

    thanks but some users use CTRl + C : (

  142. DC says:

    Works great! Thank you :)

  143. rosemary says:

    How does this affect folks trying to use pinterest on your site? Will it not allow them to pin your photos?

  144. Lori E says:

    Thank you. I had this on my page some time ago and for some reason removed it. Silly me. I have just reported a couple sites for mining my content and posting it on their blogs. This is at least one step to secure my content from those unscrupulous people.

  145. Closer to Lucy says:

    I have looked forever for this type of widget…thank you so much!

  146. Lisette says:

    Thank you so much! I was getting weird hits from weird (pornographic) websites in Russia. I did not know if they were copying my pictures.

  147. Roselle says:

    Thank you so much!!! Worked well in my website.

  148. shally says:

    Hi Vishal, Could U please tell how can not show any window when right click is done. Above code workd but I want no window to appear….simply do nothing if right click is done. Please help me with that.

    Thanks
    Shally

  149. Christine says:

    Thank you – I am sooo tired of my blog photos getting ripped off.

  150. Dani Lad says:

    Bro How Can I Disable right Click on Selected pages/posts in Blogger?

  151. Giulia says:

    Thank you so much, it works like a charm!

  152. THANK YOU THANK YOU THANK YOU!!!
    What a Fantastic Post!
    I have included you in a post on my Blog! I so needed to Share this information!!
    GREAT JOB!!!

    http://protectyourfoodblogcontent.blogspot.com/2013/04/preventing-right-clicking-on-your.html

  153. Liz says:

    Thank you for this Vishal! Now my blog contents are protected. :)

  154. MaT says:

    OMG you star, thank you!!!

  155. Gwen says:

    Hi,
    im using blogger and i’ve tried this twice, and still it doesn’t work. HELP please? :-) thanks in advance

  156. waynu says:

    thanks…. working fine with me…

  157. MW says:

    I’m just adding to what Gwen has already stated. I am using blogger and although this code USED to work on my blog, I noticed last night that the right click is no longer disabled, and I can’t seem to get it to work again. Help?? Thank you!

  158. sager says:

    ya its work but if i click right click 1st time then Function Disabled! option appear, and if again i click on right click option 2nd time then “prevent these page from creating additional dialog” option appear if user click on it and then OK button then right click option appear again. so no use of it. but thanks for help.

  159. Thank you Vishal, it really works….

    Thanx a Ton :)

  160. Bobby C. says:

    The code works. Thank you. W

    hen using the dynamic views template, just use the code in the html section in one of your blogs when you write a blog. JUST DO IT ONCE and it connects to every other picture you post in your blog later on and even in your previous blogs.

    Just rename the “Function Disabled” to whatever you want.

    Hope that helps.

  161. Morgan Brittany Photography says:

    Thank you so much! This helped a lot, I was so worried I wouldn’t be able to do this, but now I can and it worked. SO THANK YOU SOOO MUCH!!

    -Morgan

Leave a Reply

© 2008-2012 Being Geeks. The content is copyrighted to and may not be reproduced on other websites. Designed by Vishal Gaikar