Protect images

  • Thread starter Thread starter samh
  • Start date Start date
It's not possible. There are all types of "tricks" people use to try and
protect them but the bottom line is the only way to protect them is not to
put them on the Internet.
 
The same way you protect a photo or image in a book from copying.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
A watched clock never boils.
 
Here are a couple of ways to deal with it.
The first is a web site that offers a program that will keep people from
stealing your pictures, but allow them to still right click (so they can
use other right click options) It's freeware.

The other options (kills right clicking) is a script that will stop it.
Instructions on the bottom.

<SCRIPT LANGUAGE="JavaScript1.1">
<!--
function right(mousebutton)
{
var msg1 = "Hey!! Look but don't touch!!";
var msg2 = "Isn't this the most annoying script since BLINK?!";

if (navigator.appName == 'Netscape' && mousebutton.which==3)
{
alert(msg1);
return false;
}
else

if (navigator.appName == 'Netscape' && mousebutton.which==1)
{
alert(msg2);
return false;
}
else

if (navigator.appName == 'Microsoft Internet Explorer' && event.button
== 2)
{
alert(msg1);
return false;
}
else

if (navigator.appName == 'Microsoft Internet Explorer' && event.button
== 2)
{
alert(msg2);
return false;
}
return true;
}
document.onmousedown = right;
// -->
</SCRIPT>


********************************************

This code goes inside the code in your HTML.

In the middle of the code you will see a couple lines that look like
this:

var msg1 = "Hey!! Look but don't touch!!";
var msg2 = "Isn't this the most annoying script since BLINK?!";

This is where you add your own message. Where you see, "Hey!! Look but
don't touch!!" and "Isn't this the most annoying script since BLINK?!"
you can change the words inside the quotations to whatever you want them
to be. This is what people will see in the pop up box when they try to
right click on your page.

Problem: When I tried this script in Mozilla the popups worked fine but
it didn't keep the menu from popping up. People may still be able to
right click and double click when using the Mozilla browser.
 
This does NOT work. All disabling right-click does is keep the basic users
from stealing your images. There is NO way to prevent someone from really
wanting them from getting them unless you don't put them on the Internet.
For example, you could disable right-click and I could just go to my
Temporary Internet Files and get them from the cache or I could do a view
source on the site, find the path to the image and paste that into my
browser and get it that way or I could use the Import Site feature of
FrontPage to suck in the images etc, etc.

You can try these tricks to discourage the average person but ultimately
they're just tricks - not bullet proof. There are sites where you can
copyright/digitally watermark your images that might help but if they keep
them on their Hard Drive or print them those don't really help much either.

Dave
 
Hi,

The essential of web browsing is that all the data is downloaded to the
client before being viewed by the user. So there is not a 100% solid way to
prevent files being copied.

However there are tricks to restrict normal users not familiar with web
technology by using JavaScript:

How do I trap Right Click "Save Target As" ?
http://www.faqts.com/knowledge_base/view.phtml/aid/5693

Best regards,

WenJun Zhang
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top