View Full Version : To disable right click or not?
12-16-2011, 02:23 AM
Hello, Thanks for reading.
This is my first post, I hope it's not too stupid.
Should I disable the right click option or not?
I have a gallery site, I don't want people to be able to copy the images with the default right click over an image. From a professional looking site point of view I suppose I would be messing with the functionality a bit too much, OR is it OK in this instance to disable the click. I know how to write the code to disable the click, but what I was thinking was maybe it would be better to leave the right click but change the menu options? I'm not sure how to change the menu options, any suggestions would be appreciated
Here is a link to the site.
(It's still in the early stages on development)
Thanks for any advice.
12-16-2011, 02:30 AM
Ummm...and why do you think that disabling right click will help???
There are at least three simple ways I can go grab all the content I want to off of your site without using right click. And I'm sure there are more. I just thought of those three as I started typing this.
I mean, yeah, it might stop the total internet novice, but anybody who has half a brain and has a few hours of playing around will know how to bypass right click.
12-16-2011, 02:32 AM
A better answer is to digitially watermark your photos. Even that's not going to stop the determined hacker, but at least they will have to work at it for more then 15 seconds.
12-16-2011, 03:25 AM
thanks for the reply,
Yes, you are right, this is only to stop the complete novice, the files have been save at a low res format with a basic watermark across the image, I suppose it's the same in any thing you do, if some one is determined then they will break,hack,steal your stuff, I'm just trying to stop the simple methods that are easy to stop.
As for site functionality, is it ok to disable the right click or how to do alter the menu optoins
12-16-2011, 04:27 AM
12-16-2011, 07:33 AM
This is one of the FAQs.
A. Short answer, you can't.
12-16-2011, 06:54 PM
Thanks, you are showing your mastery of the art of programming:-) Just the answer I needed.
12-16-2011, 07:15 PM
One thing to remember is that there are lots of options in that menu apart from the one that could be (but rarely is) used to steal images. If you do disable the right click and your visitors are novices who don't know any of the other ways to access that menu or how to disable your request to disable it then you are blocking them from all those other options.
Anyone serious about stealing your images would know a dozen other easier ways to do it and wouldn't know that you had even tried to disable that menu.
12-16-2011, 10:22 PM
What felgall said. In spades. <grin/>
12-17-2011, 03:01 AM
right-click is expected, any site on which it doesn't work is functionally broken.
use background-image instead of <img>: it doesn't offer any save options upon right-click, so you can keep the expected clickability without making it too easy to steal the images.
a clear <input> in front of the image will also intercept the right click, offering options like paste and copy instead of save image as...
12-17-2011, 04:04 AM
use background-image instead of <img>
if you do that as the background behind a transparent gif file then they still get the opportunity download an image - of course the image they would be downloading is the transparent gif rather than the one they were trying to steal and by the time they realise it would probably be more effort than they are prepared to put in to go back to your site to steal the right image.
Any image you use with your site can be stolen by someone who knows how - assuming the image is worth stealing which 99% are not. Lowering the resolution of the image may make it less likely to be stolen as will placing a visible watermark across the image.
12-17-2011, 05:56 AM
Okay, that gives me an idea!
Instead of putting a transparent image on top of the real one, put a copy of the real image there...but with opacity set so that it is a near transparent as possible.
Except on that copy have a great big "STOLEN FROM ZZZZ" plastered across it!
So... The person downloads the image, gets the "STOLEN FROM ..." one, looks at it, and thinks you've done something magic. Granted, it's no more hack-proof than any of the other answers, but I'd bet it would confuse more people than the other ones!
12-17-2011, 11:51 AM
Yes, that's all great advice, having looked around at some professional photo agencies galleries they all seem to use the methods that you guys have outlined, the blank image seems to be the most popular, I agree that tempering with the right click is not the correct way as some of you have pointed out that this would brake standard functionality.
Thanks to all for taking the time to respond to my question.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.