jump to navigation

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.

The Man Himself!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!

Share/Save/Bookmark

Tags: , , , ,


Related posts:

RSS feed | Trackback URI

2 Comments »

Comment by Rob
2007-04-05 17:49:23

Working fine in Google Reader and on the site.
:)

 
Comment by Ronni
2007-04-06 00:14:03

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

 
Name (required)
E-mail (required - never shown publicly)
URI
Subscribe to comments via email
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

Trackback responses to this post