Jump to content

- - - - -

Preventing others from downloading your pics

  • Please log in to reply
2 replies to this topic

#1 snoack


    Wolf Eel

  • Member
  • PipPip
  • 187 posts
  • Location:Munich, Germany

Posted 26 April 2002 - 04:06 PM

Here are some ideas if you want to make it a little bit more difficult for others to save your pictures:

1. Get rid of the new Graphic Menu feature of MSIE
(i.e. the little menu with the Save icon that appears in IE 6 as soon as you move your mouse over an image)

Copy this line into the section of your page:


2. Disable the Right Click Menu

Disabling this menu is considered bad style but is very effective. The following script works for NS4-6 and IE4-6. I wrote it myself, use it if you like it ...

Copy the following lines (including the <script> tags into the section of your page:

<script language="JavaScript1.1">


3. Make them save a fake picture

This is my personal favorite. Simply place a transparent gif above the original picture. Give your fake a promising name and nobody will realize that he saved an empty image ;D

What you need is a small transparent gif, named something promising like pic17.gif

Copy the following line between the end of the head and the beginning of the body section of your webpage.
It defines a general purpose area that is positioned above everything else on your webpage (z-index=999). Adjust the values for top and left, if you want your protection to start somewhere lower or to the right.



Copy the following line before the end of your body section.
It fills the area (named picsaver) previously defined with the transparent gif image (named pic17.gif).
If the image is in another directory than your page, you have to add the path (something like "../images/pic17.gif".
If the area to hide is smaller or larger you have to adjust the height and width values.


If you're using this example, the right click menu will offer to save pic17.gif. Make sure that the top and left positions (of #picsaver) and the image width and height match your webpage.

Demos can be found in my galleries, try one of these
http://www.dive.snoa.../e_gallery.html Manatees (scanned slides)
http://www.dive.snoa.../e_gallery.html Maldives (scanned slides)
http://www.dive.snoa.../e_gallery.html Indonesia (digital)

Have fun - Sabine

[Edited on 4-28-2002 by snoack]

#2 sean


    Moray Eel

  • Member
  • PipPip
  • 75 posts
  • Location:Seattle, WA

Posted 19 June 2002 - 10:28 AM

I tend to use the right-click to open image links in a new window (to avoid a slow re-navigate back to an index page) and I find the right-click interceptors really annoying. Especially since if I really wanted to steal the images it would be easy regardless of the above steps!

The invisible gif trick is quite clever!

However I'm sure you're aware it would be pretty trivial to write a tool to circumvent all the above steps if someone was determined. A more tamperproof solution might be to use something like Flash to host your slide show/image gallery -- that would stop `em! Though of course it's much more heavyweight and requires the viewer install a plugin at some point. Plus you'd have to buy the authoring toolkit.

Thanks for the post, it's educational!

#3 herbko



  • Member
  • PipPipPipPipPip
  • 2128 posts
  • Gender:Male
  • Location:Northern California

Posted 19 June 2002 - 11:06 AM

I keep forgetting to login.

Herb Ko http://herbko.net
Canon 5D; Aquatica housing; 2 Inon Z220 strobes; Canon 100mm macro, 17-40mm ; Sigma 15mm FE, 24mm macro, 50mm macro