My I Remember JFK site has lots of small graphical images on it which many folks love linking to to display on their own sites.
The problem is that what they are doing is costing me bandwidth.
I have a stated policy on the site that individuals can copy a graphic and use it on their site as long as they give irememberjfk.com credit.
But unfortunately, many choose instead to simply link directly to the image.
The powerful .htaccess file will put a stop to it. I'm listing mine here, for the benefit of any others who might have the same problem. Read on.
My own .htaccess file:
Options FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?myspace\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?blogamos\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?baseball\-fever\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?wikispaces\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?livejournal\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?uncoverreality\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?freerepublic\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?redandwhitekop\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?frugalsquirrels\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?humaniplex\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?nynjsurf\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?blogspot\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?ebay\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?cpturbo\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?absolutewritee\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?livejournal\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?advrider\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?scout\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?wordpress\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?catholic\-convert\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?rivals\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} forum [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?sportsgi\.com/ [NC]
RewriteRule .*\.(jpe?g|gif|bmp|png|jpg)$ /graphics/visitme.jpe [L]
Note that NC makes things case insensitive, and OR must follow every site entry but the last one.
I add domains as they appear on my logs. Myspace.com is the worst. Note that I also eliminate any site that uses the term 'forum' in its url.
Some victims have gotten quite nasty about this. They might display a graphic that says "Stolen from mydomain.com" or the like.
Not me. I just serve up this friendly little blurb. So if you spot this on the web anywhere, know that yet another leech has been foiled! :-D