HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
How can I protect my images?
Post new topic   Reply to topic    HTML Help Forum Index -> HTML FAQ
View previous topic :: View next topic  
Author Message
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8267
Location: Castle Rock CO USA

PostPosted: Wed Apr 19, 2006 5:25 pm     How can I protect my images? Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML FAQ All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial