Forum Moderators: phranque
208.36.144.9 - - [12/Mar/2008:17:46:28 -0700] "GET /index.php?module=Members%20List&func=view&startnum=13601 HTTP/1.0" 500 590 "-" "Mozilla/5.0 (Twiceler-0.9 [cuill.com...]
But in htaccess I have
RewriteCond %{HTTP_USER_AGENT} Twiceler*
RewriteRule ^.* - [F,L]
How is it possible that this isn't working? When I go here:
[wannabrowser.com...]
and paste in the above user agent string it does indeed trigger the 403 error. Just doesn't make sense...
I suggest that you always allow both your robots.txt and your custom 403 error page to be served, no matter what the requesting IP address, hostname, referrer, or user-agent is. This can be arranged most simply by prefacing your access-control code with an exception like this (I optimized your code slightly as well):
# Skip all following rules for robots.txt and 403 error page requests
RewriteRule (robot\.txt¦403-error-page\.html)$ - [L]
#
RewriteCond %{HTTP_USER_AGENT} Twiceler
RewriteRule .* - [F]
Change the broken pipe "¦" character above to a solid pipe character before use; Posting here modifies the pipe characters.
Jim
The server error is most likely the result a 403-Forbidden loop, and described in some detail above, and a very common problem.
Jim