Home Page My Photo Gallery Buy Photos in My Store Photography Forums Free Words of Wisdom to Get Better Images Post Your Pictures About Me Photography Links Email Me

Copyrighting Your Images and Deterring Image Theft

Another technique to deter image theft is to use JavaScript. The following code will prevent surfers from right-clicking and saving your images. In order for this technique to work, the surfer must have JavaScript enabled on their browser. This is not a fail-safe method, determined thieves will be able to get around any image protection. Place the following code between your <head> </head> tags. Replace "All images are protected by Copyright. Do not use without permission." with whatever message you want to display when a surfer tries to right-click and save on one of your images.

<script language="JavaScript"><!--
//script to protect images from theft
function click()
{if (event.button==2)
{
alert('All images are protected by Copyright. Do not use without permission.')
}
}document.onmousedown=click
// --></script>


Here's a demo of how this works. Try right-clicking on the image below.

javascript image protection demo

All of these methods, described in this article, can be used either singularly or combined as multiple layers of image protection.

[Page 1] [Page 2] [Page 3] [Page 4] [Page 5]

Article by Jeremy Baker




Google



[Home] [My Gallery] [Store] [Forums] [Photo Advice] [Post "Your" Pictures] [About Me] [Links] [Email Me]

Bookmark Us
(Press Ctrl-D to bookmark in Netscape, Mozilla, Opera, etc.)

Free Screen Saver Affiliate Program
Please join our mailing list and be informed of
site updates such as new images added and more!

enter email address below:
subscribe
unsubscribe

Site Map

Google