Goodbye, Lampreys!
April 5, 2007
Posted by Dan Edelen in : Blogging, Technical Functions : Trackback,
Print This Post
,
Email This Post
Last week, I noted that my blog was being hit by a number of image hotlinkers. Well, after experimenting with several options (thanks to those who sent suggestions), I finally found a formula that worked:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://([-a-z0-9]+.)?ceruleansanctum.com [NC]
RewriteCond %{HTTP_REFERER} !^http://([-a-z0-9]+.)?dedelen.com [NC]
RewriteCond %{HTTP_REFERER} !^http://([-a-z0-9]+.)?bloglines.com [NC]
RewriteCond %{HTTP_REFERER} !^http://([-a-z0-9]+.)?feedburner.com [NC]
RewriteCond %{HTTP_REFERER} !^http://([-a-z0-9]+.)?feedshow.com [NC]
RewriteCond %{HTTP_REFERER} !^http://([-a-z0-9]+.)?newsgator.com [NC]
RewriteCond %{HTTP_REFERER} !^http://([-a-z0-9]+.)?google.com [NC]
RewriteCond %{HTTP_REFERER} !^http://([-a-z0-9]+.)?yahoo.com [NC]
RewriteRule .(gif|jpe?g|png)$ - [F,NC,L]
The above .htaccess code basically wiped out all the hotlinkers while allowing the domains listed above to access my images.
If you cannot see the small image of my face included in this post, please let me know. That goes for feeds, too. Let me know what site you’re using to view this post and I’ll adjust my exclusions.
If you’re a Web guru and think I’ve got something wrong or have failed to allow for a site that I should let through, let me know.
Have a blessed weekend!
Tags: .htaccess, Bandwidth Theft, Blogging, Hotlinks, Technical





Working fine in Google Reader and on the site.

I see ya in bloglines fine…. Awww yer cute!