Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: protect images from download



also, that doesn't stop the right click from working in all browsers.

and... what about people who want to:

right-click: bookmark this site

if you are going to be this obsessive about it at least put the function call only on the images

and besides, anyone can go into their browser, shut off the _javascript_ support reload your page and bingo, have your images via right click again.



On Sun, Apr 20, 2008 at 2:29 PM, Dane Harmon <email@hidden> wrote:
By implementing that, you may find that people aren't swiping your images because they no longer care to visit your site.  There are a dozen+ actions I can perform with a right-click in a web browser - only a couple of them related to saving the images that have already been sent to my computer.  Why frustrate people?  You aren't (and can't) prevent folks from saving the images - you're just interrupting their browsing with obnoxious alert boxes.  And you know what will happen after a month?  Bots will come along and save those images to their Image Search cache regardless of your _javascript_.

- Dane


On Apr 20, 2008, at 1:50 PM, Robert Poland wrote:
Hi,

Thanks for all the advice I've received on this subject.

I have a script that works well enough for now, see sample XHTML below.

However when the "alert" is fired I have to click on it twice to get rid of it.

I have removed chunks of code but can't seem to cure it.

Any ideas?

.....

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<head>
<title></title>
</head>
<script language="_javascript_" type="text/_javascript_">
function right(e) {
var message="Sorry, this function is disabled.  Borrowing the graphics from this site is a violation of copyright.";
if (navigator.appName == "Netscape" && (e.which == 3 || e.which == 2)) {
alert(message);
return false; }
else if (navigator.appName == "Microsoft Internet Explorer" &&
(event.button == 2 || event.button == 3)) {
alert(message);
return false;
}
return true;
}
document.> document.> if (document.layers) window.captureEvents(Event.mousedown);
if (document.layers) window.captureEvents(Event.mouseup);
window.> window.> </script>
<body false;">
<center>[ Try right-clicking the image and then the text link below ]
<p>
<img src="" href="http://_javascript_.internet.com/img/tjsbutton.gif" target="_blank">http://_javascript_.internet.com/img/tjsbutton.gif">
<p>
<a href="" href="http://_javascript_.internet.com" target="_blank">http://_javascript_.internet.com">Text Link</a>
<p>
<font face="arial, helvetica" size="-2">Free _javascript_s provided<br>
by <a href="" href="http://_javascript_source.com" target="_blank">http://_javascript_source.com">The _javascript_ Source</a>
</font>
</center>
<p>
</body>
</html>


Bob Poland - Fort Collins, CO



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/web-dev/email@hidden

This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/web-dev/email@hidden

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/web-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: protect images from download (From: Robert Poland <email@hidden>)
 >Re: protect images from download (From: Dane Harmon <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.