Forum Moderators: phranque
#
# reject requests for ``/.?' (hidden files)
# 2007-03-08 added -AK
#
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /\.
RewriteRule .* - [L,forbidden]
[Sat Sep 26 15:50:15 2009] [error] [client 87.78.xx.xx] Request exceeded the limit of 10 internal redirects...
[Sat Sep 26 04:52:01 2009] [error] [client 119.73.xx.xx] Request exceeded the limit of 10 internal redirects...
87.78.xx.xx - - [26/Sep/2009:15:50:15 +0100] "GET /.svn/entries HTTP/1.1" 500 - "-" "Python-urllib/2.6" In:- Out:-:-pct. "-"
119.73.xx.xx - - [26/Sep/2009:04:52:01 +0100] "GET /.../HSP-UniDriverSoftware-WinME-12.0300.0018.zip.php HTTP/1.1" 500 - "-" "Mozilla/4.0 (compatible;...
You can clean up your rule and make it more robust with:
RewriteRule ^([^/]+/)*\. - [F]
Look for another [forbidden] or [F] access-control rule that might match the URL-path of your custom 403 error document, and make sure that your custom error document's URL-path is excluded from that rule (otherwise it will loop).
Jim