Forum Moderators: phranque
RewriteCond %{REQUEST_METHOD} !^HEAD$ [OR]
RewriteCond %{REQUEST_URI} !^/favicon\.ico$
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteCond %{HTTP_REFERER} ^$
RewriteRule .* - [F]
Proof of failure:
cache-dtc-af05.proxy.aol.com - - [26/May/2006:17:29:19 -0500] "HEAD /images/imagename.jpg HTTP/1.1" 403 0 "-" "-"
abc.def.ghi.xyz - - [28/May/2006:07:08:05 -0500] "GET /favicon.ico HTTP/1.1" 403 101 "-" "-"
(above filename and IP obscured on purpose)
All normal requests come through ok and other undesirable GETs with a blank referer and UA are blocked as desired.
Thanks in advance.