Techniques for Fighting Image Theft
1. Redirect links from external sites to your "DON'T STEAL" graphic
There are numerous tutorials on how to do this around the web, but I most recently read about it on David Airey's article "How to deter thieves from stealing your images and server bandwidth". The technique is an addition to your .htaccess file in the root directory of your site:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?yourwebsite\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png|jpg)$ /images/yourgraphic.jpe [L]
Obviously, replace the bolded text above with your website and your graphic. Notice the weird file extension on the graphic (jpe). This technique completely blocks regular images to be shown on third party websites at all, but the exception allows your custom graphic to be shown. Here are a couple examples:

It's tempting to go all X-Rated or in-your-face rude, but as David points out, it's fairly reasonable that offender simply doesn't know any better so it's better to take an more neutral approach while still getting your point across. One thing you could do that is borderline mean is to make your re-direct graphic like a 10,000px square red block, that's guaranteed to break some layouts =)
2. Add a big copyright to your image, then crop it out on your own site.
Derek Powazek has a dead-simple way of adding non-obtrusive copyright messages to your images. Check out an example image in the style of Derek's example:
This image has a big obvious (yet nicely worded) copyright message at the bottom. Not something you would want to display on every image on your site. So the trick is to toss the image inside of a div that crops that off. Let's say you had an image of 300px which includes a 50px copyright message at the bottom. This is how you could display it on your site:
<div style="height: 250px; overflow: hidden;"> <img src="yourimage.jpg" alt="your image" /> </div>
The 250px is the height of the actual image part, and the bottom copyright part will get cut off. Unsemantic! Inline-Styles! I can hear the cries now. It's just a technique. It works and it's valid so I'm all for it if it works for you.
3. Include the image as a CSS background-image
CSS background images have that nice quality that you can't just click-and-drag them right off a webpage. Sure, the images are still publically accessible and there are plenty of ways to get your hands on them, but it actually requires a little effort and will probably deter a good percentage of thieves. After all, thieves aren't thieves because they like to work hard.
Some AWFUL (and non-effective) techniques
- Disable right-click with Javascript.
Since many thieves likely use the right-click, save-as technique for grabbing your images, this might stop them for about 2 seconds. This doesn't prevent click and drags and is more annoying/harmful than anything else. - Copyright / Watermark your images.
Great, I get to chose between making my image look like crap or having a tiny copyright that will get ignored or cropped off anyway? - Slice your images up into pieces and display them in a table.
What is this, 1999? I know that manually adding a copyright underneath images like up in #2 is a little work too, but this is WAY too much effort for any one image. - Make your images Flash
Sigh.
What do other designers think?
Elliot Jay Stocks has a recent article, "How can we stop the thieves?" where he talks about a design he did that was stolen and what he did about it. There is also some good discussion in the comments about the issue of design theft.
Does anyone else have any options or ideas on fighting theft?
Original article here.
- Login or register to post comments
- 1985 reads
- Flag as offensive
- Email this Story
- Printer-friendly version
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)







Comments
Michael Sync replied on Fri, 2008/02/22 - 1:03pm
1. Trick one is nice one.. I never though of this before... kinda interesting.. It can prevent linking images.
2. trick two is almost the same as no 2 from awful list.
anyway, nice post, man. thanks for sharing..
David Walsh replied on Fri, 2008/02/22 - 2:51pm
I think trick two is pretty damn clever. It's an extra step for the developer but could work. Unfortunately, the bottom part would be easy to crop off.
Michael Sync replied on Sat, 2008/02/23 - 2:12pm
in response to: davidwalsh
Philippe Lhoste replied on Tue, 2008/02/26 - 11:29am
1) is good to fight hotlinking, but of course, the replacement image must be very lightweight, otherwise you still loose bandwidth...
2) is interesting but the copyright notice is much too easy to crop out. Note that the same goes for metadata like IPTC, but still it is a good idea to add it (I guess that lot of thiefs are clueless and doesn't even know that IPTC exists!).
3) isn't really interesting: very easy to workaround, as you point out, and you loose some interesting sides like alt and title (you can put the title on the container, though).
Good idea to include ineffective techniques as well! ;) I would add that right-click blocking is very annoying because you can use it for numerous other tasks, particularly in Firefox.