scriptygoddess

07 Apr, 2007

Avoid hotlinking images with ImgRed

Posted by: Jennifer In: Bookmarks

(Found via CreativeBits)
Instead of hotlinking images and stealing the original host's bandwidth, you can use imgred.com to cache the image (you can even have it make a thumbnail) and use that link instead. While, for a blog post you would probably take the extra steps to download the file to your own server (providing this doesn't break any copyrights), this definitely makes sense for when you're posting on forums, etc.

To use imgred.com – just take the url of the image you want to link to and put "http://imgred.com/" before the URL. So instead of:<img src="http://myFriendsServer.com/theirImage.gif">Do this:<img src="http://imgred.com/http://myFriendsServer.com/theirImage.gif">

To create a thumbnail – just put "http://imgred.com/tn/" before the URL – like this:<img src="http://imgred.com/tn/http://myFriendsServer.com/theirImage.gif">
(although when I tested the thumbnail functionality just now – it seemed to be broken… I'm assuming that will be fixed soon)

3 Responses to "Avoid hotlinking images with ImgRed"

1 | Forrest

April 13th, 2007 at 10:35 pm

Avatar

This is a mixed bag. Certainly helpful for people who participate in a lot of forums and blogs, but for photographers and site owners, this is bad. ImgRed doesn't explain their business model ( how they're going to pay for their servers and bandwidth + make a profit ), or what they'll do with all the images they're going to accumulate on their servers. In fact, they don't even publish contact info or a way for people to opt-out of their service.

A little concerned over all this, I figured out how to ban imgred from my site, and wrote an article for others who might want to opt-out: http://forrestcroce.com/Articles/Protecting-Digital-Images.html

2 | Jennifer

April 14th, 2007 at 7:13 am

Avatar

I'd like to think that the original author of ImgRed had no malice intended when he wrote that code. In the FAQ, he/she wrote that they're not making a profit on it – they just run it out of a general need. And as far as someone having a database full of images – Google is sort of doing that very thing too (but in Google's case -they definitely have a specific business model). As well, if ImgRed wasn't caching the images, people can still always right-click to download for themselves – so this isn't introducing a new problem. However, I see your point that others can easily abuse it. And for those that don't want their image cached – your code to block imgred is definitely handy!

3 | Forrest

April 16th, 2007 at 1:45 am

Avatar

Oh, I definitely agree there's no malice here. The guy seems to have done something that will help a lot of people on the web, whether they have a site or not. But it's just way too easy for someone who does have malice to fly in under the radar. But then a few of my photos turned up on somebody's myspace page, so I probably have a different opinion than most people.

Featured Sponsors

Genesis Framework for WordPress

Advertise Here


  • Scott: Just moved changed the site URL as WP's installed in a subfolder. Cookie clearance worked for me. Thanks!
  • Stephen Lareau: Hi great blog thanks. Just thought I would add that it helps to put target = like this:1-800-555-1212 and
  • Cord Blomquist: Jennifer, you may want to check out tp2wp.com, a new service my company just launched that converts TypePad and Movable Type export files into WordPre

About


Advertisements