Stealing Bandwidth?

| | Comments (1)

I hope not. I've been looking at my referral logs lately and I've been seeing referrers from myspace.com, otib.co.uk, and a bunch of other sites that really have no reason linking to me.

At first I was flattered, "People must really like my site to be linking to it", I thought. Then I got smart and questioned if they were linking to my images from their site. Well, since most of the referring pages were something like http://profile.myspace.com/index.cfm I really didn't know *what* actual page it was because index.cfm is probably thousands of pages.

One referrer was so kind to leave their complete URL for me =) See below.

Thanks to the power of google I came across this site, http://www.uk-dave.com/bytes/misc/referer-check.php, which explains how you can put a little code in your .htaccess file to block (or embarass) bandwidth robbers.


SetEnvIf REFERER "www.mydomain.com" linked_from_here
<FilesMatch ".(gif|jpg|jpeg|png)">
Order deny,allow
Deny from all
Allow from env=linked_from_here
ErrorDocument 403 /stolen.jpg
</FilesMatch>
<Files "stolen.jpg">
Order allow,deny
Allow from all
</Files>


Here is my image:

You can see the image in action on 4 sites at the time of this posting:






1 Comments

katherine said:

that's an awesome find, Will... i was never sure what to do with people stealing my images, so i ended up constantly renaming the files that i knew were being used.

Leave a comment

About this Entry

This page contains a single entry by Will published on July 28, 2005 11:07 PM.

WakeUp Juice was the previous entry in this blog.

Today's Techie Readings is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.01
Support this site by opening up a hosting account with site5.com
Powered By Site5.com