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.