[Javascript] Disable left mouse click and drag on images

John Warner john at jwarner.com
Fri Jul 21 06:51:50 CDT 2006


This can be dealt with on the server side with some reasonable success
(watermarks and the like) what is your server side tool(s). I've seen
any number of articles in for dotnet discussing protecting images. Note
without disabling the mouse.

Oh the suggestion about the GIF in the foreground by Triche Osborne
works reasonably well if you keep the path to the actual images hidden
from the client. That's why I suggest doing this at the server. Also as
pointed out, it is stored on the client computer if the client is
viewing it,, a clever user will still get the images.


John Warner
-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu] On Behalf Of Alan Easton
Sent: Friday, July 21, 2006 4:58 AM
To: javascript at LaTech.edu
Subject: [Javascript] Disable left mouse click and drag on images


Hello People,

Now I know the issues surrounding trying to stop people stealing images
off your website, it basically cannot be done, you can make life
awkward, but essentially it cannot be done.

Well, I have a client who wants me to make it as difficult as possible
for any visitor trying to save their images.

I have disabled right-click on images, but you can still left click on
an image, and drag it to either the location bar, then save it once the
image shows, or drag it to your desktop.

Question is, does anyone have a trick that I can use to stop this
"left-click and drag" on images....????

Any help would be appreciated.

Alan..





More information about the Javascript mailing list