Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need script that stops user from saving the picture on the site

Status
Not open for further replies.

user2

Technical User
Aug 10, 2001
70
US
We can always save a picture from a website when we right click on it. How can I stop the user and have it disabled
 
You only want people with javascript turned on to not be able to save pictures by right-clicking on them? That sounds strangely unfair. Why let people who wish to save pictures in other manners save them but discriminate against those who wish to use the right-click?

Oh well, to disable the right-click you can use the code from here:
But of course, that wont stop anyone from saving your images, since they could:
a) Turn JavaScript off, or,
b) Use the "file -> save as" function to save the entire web page to their hard drive, or,
c) get the image out of their cache, or,
d) look at the source code and key in the URL for the image directly, or,
e) press the "print screen" button and paste into their graphics editor, or,
f) simply drag the images out of your page onto their desktop.



[sub]Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
[/sub]
 
What dwarfthrower is saying is that the only way to keep people from saving a picture from your website is to not put it on the web.

There's always a better way. The fun is trying to find it!
 
Stopping people saving images (thread215-620990)

Posting code? Wrap it with code tags: [ignore]
Code:
[/ignore][code]CodeHere
[ignore][/code][/ignore].
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top