Elliott C. Back: Technology FTW!

Anti-hotlinking in effect

Posted in Blogging, Code by Elliott Back on July 11th, 2005.

Since I got slashdotted a little bit, I’ve turned on anti-hotlinking in the images folder with this htaccess rule:

# Hotlinking
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !elliottback\.com [NC]
RewriteCond %{HTTP_REFERER} !ericback\.com [NC]
RewriteCond %{HTTP_REFERER} !google\. [NC]
RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
RewriteRule .*\.(jpe?g|gif|png)$ - [F,NC,L]

Let me know if I’m missing something, or you see any problems!

This entry was posted on Monday, July 11th, 2005 at 8:07 pm and is tagged with hotlinking, rewriterule, google, jpe, missing something, http referer, png, little bit, rewritecond, images. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback.

Viewing 3 Comments

 

Trackbacks

(Trackback URL)

close Reblog this comment
blog comments powered by Disqus