View Full Version : Protecting images from getting downloaded or saved

11-15-2007, 02:06 AM

I m creating an online image gallery.
Is it possible to not allow the user to copy the image on the site (right click save as or any other ways).
are there any ways to prevent this.:confused:

thanks all for your feedbacks...

11-15-2007, 02:31 AM
There are many ways to do this, such as disabling the context menu, but they are only temporary ways. Anyone with enough knowledge can get past what may seem like great protection. From what I know, the best way to protect your content is to create it with Flash, assuming you still want to put it on the Web (if you don't, that's the safest choice). With normal HTML, CSS and JavaScript, there isn't enough security. This goes for PHP, ASP.NET and other server-side languages too since they all end up as HTML pretty much.

11-15-2007, 03:51 AM
not possible.
If the user can see it, the user can save it. There have been many related topics on this forum (http://www.codingforums.com/showthread.php?t=4437) and they all end the same: You cant do it.
The best way to protect your images is to add a copyright overlay or something similar. like this example from clipart.com:
flash is the same because you can still screen-shot or just save the flash file.


Someone close this before it gets to be 6 pages and 82 posts...

11-15-2007, 10:01 PM
Before a browser can display the images on a web page it first downloads them to the cache on the local computer. By the time your visitor sees the images on your page they already have a copy of it on their computer and so preventing them from copying it again is pointless.

Someone should close this before it gets to be 8 or more pages long - this subject has been done to death many times before - if you don't want people to be able to copy it then don't put it on the web.

rnd me
12-13-2007, 02:13 PM
a simple way to stop right-clickers is to
1. show the image as a background-image, not an "<img>"
2. put a clear textbox over the image. textboxes get thier own special right-click menu, which doesn't include "save as..."

the above posts are correct there there is no sure way of doing this.
i don't know how you could stop "printscreen".

12-13-2007, 09:08 PM
Right click is more annoying to web users.. and doesn't stop people who really want to take your images. My suggestion would be to watermark your images if your really scared of people reproducing it as their own.