Click to See Complete Forum and Search --> : Prevent Download of Pictures in Frontpage 2003
I have set up some large photo galleries, I downloaded some software that prevents right mouse click on the gallery page but when you click on the thumbnail the picture opens in a new window and there the right mouse click is still available. I need to fix this so people can not download my pictures. Is there an add on out there that would help with this? Any help would be appreciated.
Thanks,
A1ien51
12-08-2005, 12:02 PM
If you do not want people to take the images
DO NOT PUT THEM ONLINE! THERE IS NO WAY TO PROTECT THEM, hope you did not pay money for that protection code.
Or
Watermark them so no one will take them.
Search the forums and you will 1000's of talks on this subject.
Eric
A1ien51
12-08-2005, 12:10 PM
Here is a link also: http://www.webdevfaqs.com/general.php#protectimage
Eric
sbatchelor
12-08-2005, 01:44 PM
I used this code on one of my sites:
<script language="JavaScript" type="text/JavaScript">
var message="The content on this page is copyrighted\n and may not be copied.";
function trapIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function trapNS4(e){
if (document.getElementById&&!document.all||document.layers){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=trapNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=trapIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
</script>
*************
Don't know if it works in other browsers besides IE.
:D
Brollachan
12-09-2005, 05:42 AM
Don't know if it works in other browsers besides IE.
Not sure, but its a waste of time though it doesn't prevent someone without much of a clue from taking the image.
3 ways to still get the image...
-> Disable Javascript: once disabled the image can be copied as normal
-> IE has a mouseover image tool thing, though this can be disabled in the meta tags
-> Take a screen capture and crop it, only having a watermark on the image will make this option less tempting.
felgall
12-09-2005, 03:08 PM
You left out several dozen more ways to get the image.
4. Use Opera which ignores no right click scripts
5. access the menu from the keyboard instead of the mouse
6. use a bookmarklet to disable the script
7. save the page complete with all images
8. etc......
RayRay
12-10-2005, 04:59 PM
try this code
<script language="JavaScript"> <!--
// No rightclick script v.2.5
// (c) 2005 Roaming Empire.com
// info@roaming-empire.com
// Don't delete this header!
var message="Ooops! Can't do that!\n\nSorry! Graphics are Copyrighted ©2005 Roaming Empire.com on this website.\n\nContact: info@roaming-empire.com"; // Message for the alert box
// Don't edit below!
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// --> </script>
<script language="JavaScript1.2">
/*
Disable right mouse click Script
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
This script last updated:99/04/05
*/
if (document.all)
document.body.onmousedown=new Function("if (event.button==2||event.button==3)alert('The right mouse button has been disabled')")
</script>
felgall
12-11-2005, 12:24 AM
Opera sensibly ignores stupid code like that. For other browsers simply install a "get rid of the stupid no right click script" bookmarklet - http://javascript.about.com/library/blright.htm - running the bookmarklet will disable the stupid script and give you back access to the right click menu which has many legitimate uses.