Click to See Complete Forum and Search --> : Protect Image Download


Lady DeVill
11-26-2003, 11:32 PM
Can someone direct me to a script (any type) that will protect images from being taken from a website?

Thank you,

Lady DeVill

fredmv
11-26-2003, 11:43 PM
Welcome to the forums.

Sorry, cannot be done. For a user to even view the image it must be downloaded to their cache. If you don't want your images being stolen, simply don't upload them. Your other option would be to watermark your images.

Lady DeVill
11-27-2003, 04:09 AM
I worded this wrong...is there a way to block a right click to do a save as???

Gollum
11-27-2003, 04:26 AM
Yes you can block right-click, but there are sooo many ways to get around that, or people could just do a screen-capture, or select the image and copy and paste it somewhere else that you might as well not bother.

If your images are that valuable, you should consider other methods of protecting them...

> provide only thumbnails online.

> paste the word "Specimen" (or something) all over the image

> offer your images to paying people only (using logins and credit cards, etc).

Lady DeVill
11-27-2003, 10:38 AM
I have a client that wishes the images to be "difficult" to retrieve....I have alrady explained that it's impossible to completely ban them. Images are already branded and she is insisting on the right clicke endeavor even though the new XP/IE browser allows just a hover that pops up....anyway, I am just looking for that script that blocks...I haven't used it in a very long time...can you at least point me in the right direction????

Thanks in advance,

Lady DeVill

big Chris
11-27-2003, 06:36 PM
Lady Devill,

Use this code.....it always works for me.

Just place it in the <head> of your code.

-------------------------------------------------------------
<SCRIPT LANGUAGE="JavaScript1.1"><!-- Begin
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("You are restricted from downloading these images. If you want the pictures for a good reason, e-mail 'me@e-mailaddress.co.uk' and he'll send them to you!");
return false;
}
return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
// End -->
</script>
-------------------------------------------------------------
Regards,

96turnerri
11-27-2003, 06:48 PM
also in the image tag for the selected pictures add attibute <img galleryimg="no"> this will stop the save print share bit in ie6.0 :cool:

Lady DeVill
11-27-2003, 10:07 PM
Thank you all for your gracious help!