Disabling right click or context menu is one of the more popular ways to prevent images from being stolen from a blog.

While it is effective to some extent in deterring casual image theft, it also frustrates honest readers by denying them access to many useful functions associated the right click such as going Back, page Reload, Bookmark and Open Link In New Window.

The better way would be to disable right click only on images. After all it’s the images they’re trying to protect, so this method is more appropriate to the task and more importantly it’s far less annoying to readers :). (It is impossible to keep people from stealing images posted on your blog or website, but hey this is better than doing nothing right?).

a) Disable right click on all images

Go to your template Edit HTML and paste the following script right after the </head> tag.

57
comments to "Disable right click context menu on images"

Thanks for this useful post, i will use this script so that noone will copy my article and posted in other blogs. the script I've used is "warning: copyright protected". I guess this will protect our work online especially if the articles are our own ideas, own intellectual property.

Thanks for this post, I've been looking for this for a long time. Keep it up bro. you have so many useful blogger tips and tricks in this blog. You deserved to have a Blogger Sentral domain name.

bryanliem2020@yahoo.com,
May 15, 2012 at 7:34 PM

Thank for share this code.How to use this code with "back to top" by right click

Well, people can simply do a PrintScreen or a Cut PrintScreen... Sometimes even more faster than saving the actual image. If people want to copy, they'll copy. Also, the web is not as regulated as print media, although this might change in the upcoming years. Intellectual property is a big business. Here in China, more and more efforts are done towards intellectual property rights. But it takes time to change the mentality of people.

Tried the pix trick, friends hated it ... What's the point of blogging if you're not sharing... If you give something, later you'll get something in return. The perfect balance in life and even in the blogger world. Anyway great info.. Much more detailed form the script i used. Would do great on my clients blog... if they request for it.

Hey There is mistake??? in where we have to place the code..Go to template-->Edit HTML and paste the following script not right after the /head tag...but place it before /head tag..okk ..Thanks for giving nice good code can u give me code for how to disable the copy of text from blog...-----urs SAI KRISH

this is EXACTLY what I needed. Previously my page had right click disabled on images and text and that just wasn't working out. Now it is how I like it! I have a resource page (geared toward photographers, but everyone is welcome) and I listed this article as a reference! Thanks for being so helpful.Alisha Smith Watkinshttp://amswphotography.blogspot.com/p/downloads-and-resources.html

I am looking for this to control the copy of Images. Thanks a lot. --Jay

Anonymous,
August 7, 2013 at 4:05 PM

GreenlavaI have used the code for disabling a picture and it works good for a single image on a WP page, but when I select the picture it is shown on a new browser page and is the original size and the "disable right click image does not work.

Great tips, Greenlava, thank you! I am photographer and for me that is very essentially. But I found out, that if I outline not the post body only, but hole page (wider than the post body at least) - it has been copied both text and images without problems. Is there any possibility to prevent this issue? Thanks.

Dafilla,
August 19, 2013 at 7:06 PM

Great script.

Anonymous,
August 20, 2013 at 6:06 PM

For Wordpress sites I would recommend the WPCCP plugin. This works amazingly well ! http://wordpress.org/plugins/wp-content-copy-protection/

Thank you so much for sharing this code. I recently found a photograph of my 8 yr old son on a woman's website -- my son was photographed with a famous actor, and her website is devoted to "hot me." I was totally freaked out. Thankfully she removed my photo immediately -- but this code will help prevent future photo thefts. :)

Thank you! I am constantly filing DMCA complaints because people feel they can take whatever pictures they find on my blog. Watermark no deterrent enough. I'm all for making the job of these thives as hard as possible. Obviously nothing can stop a person from stealing, but I found out that many are ignorant of Copyrights, basic internet ettiquette, and in some cases I doubt they even are techsavy as I found a few that were hotlinked straight from my blog. Right click blocking prevents this from happening at least