HTML Help Forum Index HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

How can I protect my images?
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum Index -> HTML FAQ
View previous topic :: View next topic  
Author Message


Corey Bryant



Joined: 15 May 2004
Posts: 8428
Location: Castle Pines North, CO USA

Posted: Wed Apr 19, 2006 5:25 pm     How can I protect my images?  

Short answer, you cannot.

There is the disable right click: Code: <script language=JavaScript>
<!--

//Disable right mouse click Script
//By Maximus (maximusatnsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="Function Disabled!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document .all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

// -->
</script> but someone can easily turn JavaScript off or view the source code to grab the image path.

Also on Internet Explorer 6.0, there is the image toolbar that will come up. You can also disable this as well by placing this in the <head> Code: <meta http-equiv="imagetoolbar" content="no">
But once again not a fool-proof method.

You can place the image as a background and then place a spacer.gif over the image. Still, one can view the source to get the path to the image.

Ways around these are:Viewing the source and then going directly to the image file, for example: http://www.htmlcodetutorial.com/graphics/logo.banner.guide.gif
Pressing CNTL-A (this will select everything on the webpage), CNTL-C (copy) and then going into Frontpage and pressing CNTL-V (paste) into a new page. This will copy the images and everything else.
Looking in the temporary internet cache and locating the image there - since all pages / images are usually stored on a user's machine for a few days.
Doing a Print Screen or Copy Screen
Another way around this would be to type into your browser:
view-source:http://www.htmlcodetutorial.com
You can consider placing a watermark on the image which will help some.
Some people also slice the image in a few pieces. This won't help, but might make it more difficult for someone to copy your image(s).


-Corey
 
 
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum Index -> HTML FAQ
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group