homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

How To Get Rid Of Stupid IE Icon
Save images from being saved!

 10:23 pm on Sep 24, 2002 (gmt 0)


I have a java (jeez, doesn't everyone?) that denies a right click som people cannot easily take my images. Sure, you can get around it... but it takes a bit of work.

Now I notice IE puts a nice little icon over images so you can easily save the image! Has anyone worked out a bit of code to get rid of that?





 10:26 pm on Sep 24, 2002 (gmt 0)

Add this meta tag:

<meta http-equiv="imagetoolbar" content="no">


 10:59 pm on Sep 24, 2002 (gmt 0)

Add this tag to the head section of your site, this will disable the image toolbar for all the images on that page of your site:

<meta http-equiv="imagetoolbar" content="no">

You can disable it for one or more images if you want by adding the following tag to your image:

<img src="yourimage.gif" galleryimg="no">

hope this is what you were looking for :)


 3:24 am on Sep 25, 2002 (gmt 0)

UrsaB, martinibuster:
Perfect! Exactly what I wanted!

Thank you both!



 5:23 am on Sep 25, 2002 (gmt 0)

Is the no-right-click code actually worth the effort?

It prevents the clueless from taking your images, but for my own site the people most likely to take my images are other webmasters, most of whom should know exactly how to get around it.

I should add that I don't care about people saving my images for their personal use - I only don't want the pictures up on other websites.


 10:48 am on Sep 25, 2002 (gmt 0)

Preventing users from right-clicking has some useability issues. Some users right-click to go back, add pages to their bookmarks, refresh the page or to print pages, and disabiling it may confuse and annoy them to the extent that they may leave your site altogether.

Also, as you pointed out, there is really no sure-fire method of preventing people from getting at your images/css/js etc. It's a fact of online life!


 10:58 am on Sep 25, 2002 (gmt 0)

Sure, you can get around it... but it takes a bit of work.

If I really want to see someone's code, I'll just launch Opera. Good point blobfisk.


 11:08 am on Sep 25, 2002 (gmt 0)

Or you can use File>SaveAs... in Netscape 7. It saves all the graphics as well as the HTML :)


 11:32 am on Sep 25, 2002 (gmt 0)


An almost foolproof way of saving your images from other people is to use a nice table. Set the background of the cell as the image, and use a transparent gif image in the cell iteslf, then stretch it to the size of the background.

Now, when someone right clicks your image, then 'Save As...', they get 'spacer.gif' - or whatever you call it. After hours of downloading and renaming, they have nothing but a folder ful of 1x1 gifs!

There is a work around here (as always!)... Just view the source. This can be done from the View>Source in the menu bar of IE.

However, we can still win! Insert a bit of code where you want the image to be:

<script src="/cgi-bin/images.pl?Me" type="text/javascript">

Now, it's image.pl that does the clever bit. The browser which wanted this code expects JavaScript - So, that's exactly what we give it. Just return the code from within the Perl program, which uses something like:

print "Content-type: text/html\n\n";
print "document.write('<table><tr><td bg=\"imagefolder/Me.jpg\"><img src="spacer.gif" width="200" height="200"></td></tr></table>')";

Okay, so now the source doesn't contain the actual location of the image, nor does it allow the user to save it using a right click.

Think about it, try it, it works!

Ps, you need to know Perl! :)

Good luck, Steve.


 12:04 pm on Sep 25, 2002 (gmt 0)

Nice idea Steve, but all the really persistent image trawler has to do is go to their Browser Cache and find the image there.... :)


 2:29 pm on Sep 25, 2002 (gmt 0)


I am not so much worried about a "professional" image trawler, but the casual viewer/"borower." For me, that is the problem. Make it a biut difficult, and they go away.

I may do the transparent gif just to make it a bit harder... now that I am learning CSS...

But that darn IE button just made it too easy!



 4:04 pm on Sep 25, 2002 (gmt 0)

ThePCStore, nice trick, but I can just print-screen your images and save them all nicely. Loose a bit from re-compressing the jpg or gif, but probably not much given that it's a web image anyway.

The most important thing for me is to put my website name on the images as text with a drop shadow. I use a script (Adobe droplet) to add that. Even that could be removed by a simple crop, or perhaps some more difficult cloning and editing.


 4:32 pm on Sep 25, 2002 (gmt 0)

Anti right click scripts are certainly not worth the effort, because you are angering your visitors by depriving them of important browser functionality. When I right click, I usually do so to open a link in a new window, bookmark a frame, etc. If some webmaster thinks he has to cripple my browser and instead of letting me bookmark his page presents me with a stupid alert box accusing me of wanting to steal their images, I get an instant, strong ALT-F4 urge.

It's about as annoying and as unprofessional as Comic Sans MS or blink tags.


 6:33 pm on Sep 25, 2002 (gmt 0)


I have disabled the right-click, but NOT put up an annoying message- just nothing happens. I agree- those "You are Stealing My Images" thing is annoying..... and, like you, I do right-click to open in a new window and all...

So I only run those scripts in the image presentation areas...

Hoping I can say this, the widgets we sell are pictures of widgets- you understand? The image IS my product. And it is an EXTREMELY popular item to get pictures of..

So, for me, this is the balance I struck.

Uhm... uh... I also use Comic Sans MS- but only as a Title font- the rest of the site is arial or Times. What's wrong with Comic Sans MS?

I would NEVER use blink!



 7:44 pm on Sep 25, 2002 (gmt 0)

Hi again,

The above method makes right click saving difficult, and does put a lot of people off. A no-cache meta-tag would save people trawling their cache, but at the end of the day, without actually defacing the original image, it's near impossible to stop poeple getting them.

A nice near-transparent yoursite.com accross the image works... :)



 11:53 am on Sep 26, 2002 (gmt 0)

carfac: Then how about putting the anti-right-click script only on images? It's not as easy as disabling it altogether - you have to put an onClick="myantirightclickscript()" into every image tag I guess - but lets people still use the right click context menu on links, etc.

Comic Sans - that's the pet peeve of most professional graphic designers, typographers etc. As the name says, it's meant for comics. Children's birthday party invitation cards may be another legitimate use for it, but for everything else it looks pretty out of place in my humble opinion. It's a goofy, unharmonious, not serious font.


 3:19 pm on Sep 26, 2002 (gmt 0)


That is a good idea!

I will play with that!


ps check sticky....


 5:27 pm on Sep 26, 2002 (gmt 0)

Just a thought: (I have not tried this yet)

How about creating a DIV layer containing a transparent gif and sizing it to cover your images?

Would this interfear with images that are links?



 12:38 pm on Sep 27, 2002 (gmt 0)

Would this interfear with images that are links?

I think it will. The layer will be sitting on top of the image link, and therefore the mouseover event will be for the transparent gif/overlaying layer.

You could make the transparent gif the link though...


 8:34 pm on Sep 28, 2002 (gmt 0)

Or perhaps make it an image map for a gallery of images.

I will have to play around with this and see if the trouble is worth it!



 2:14 am on Sep 29, 2002 (gmt 0)


It is not worth the trouble. If people want your images, the'll get them. The best you can do is make it a pain to get them. If it takes a 'off-the-shelf' java script and a meta tag, great, no big deal. But getting heavy into trying to prevent it I think is a waste of time. Might be fun to try- and for that reason, you might want to play... but I would not stay up late at night working on it!



 1:40 am on Sep 30, 2002 (gmt 0)

I am sure this can be done.
Make a small java applet to which has a slideshow of all your images. The image URLs could be coded into the applet.


 2:07 am on Sep 30, 2002 (gmt 0)

Hey saurabh, that still won't prevent me getting your images if I really want them. It's also a lot of work when my site has thousands and thousands of images, so for my particular situation is IMO not worth the effort.

If I can see them, I can Print Screen them and paste them into an imaging application.


 6:20 am on Sep 30, 2002 (gmt 0)

Yea.. no method is foolproof, and you can always print screen stuff.

Global Options:
 top home search open messages active posts  

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved