[Javascript] Disable left mouse click and drag on images

John Warner john at jwarner.com
Fri Jul 21 09:20:09 CDT 2006


I'm not where I can double check myself right now, but I'm sure the
mouse Down event can be fired for an <img> tag. But this will be your
least effective method of stopping your images from being downloaded if
someone wants them. Getting around this requires the least amount of
knowledge on the part of the user.
 
 
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 9:41 AM
To: javascript at LaTech.edu
Subject: RE: [Javascript] Disable left mouse click and drag on images



Thanks for the comments so far guys.

One thing I was thinking of is this. In Javascript, can I detect what I
click on. So basically, on a Mousedown event, I want to know the
property of that object I have just clicked on, so is it text, a link,
and image......is there a way of doing this.

Can I detect if it is an image I have just left cliked on.......any
ideas.........




  _____  

From:  "John Warner" <john at jwarner.com>
Reply-To:  "\[JavaScript List\]" <javascript at LaTech.edu>
To:  "'[JavaScript List]'" <javascript at LaTech.edu>
Subject:  RE: [Javascript] Disable left mouse click and drag on images
Date:  Fri, 21 Jul 2006 07:51:50 -0400
>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..


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20060721/5233b8b0/attachment.htm>


More information about the Javascript mailing list