View Single Post
Old 01-28-2006, 05:19 PM  
Scotty.T
Confirmed User
 
Join Date: Nov 2004
Location: Scotland
Posts: 1,062
Quote:
Originally Posted by darksoul
Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(.*)?yourdomain.com.*$ [NC]
RewriteRule .*\.(gif|jpg|png) - [F]
If you drop the first ReWriteCond to give you
Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.*)?yourdomain.com.*$ [NC]
RewriteRule .*\.(gif|jpg|png) - [F]
does the trick for me. This is the difference between allowing and denying blank referrers so you need to think about how it will affect you I guess. You could end up blocking anyone using a firewall or AV that strips referrers.
__________________
.
Scotty.T is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote