htaccess: make the Slurp/Bot/Spider tests case insensitive
[girocco.git] / htaccess
blobfc4b9ba8511b96b6483e62fd423149d00e51fb46
1 RewriteEngine On
3 RewriteCond %{HTTP_USER_AGENT}  (Slurp|Bot|Spider) [NC]
4 RewriteRule ^r/ -                               [F,L]
6 RewriteCond %{HTTP_USER_AGENT}  (Slurp|Bot|Spider) [NC]
7 RewriteCond %{QUERY_STRING}     a=(blame|blob_plain|blobdiff|diff|snapshot|commitdiff|history|shortlog) [OR]
8 RewriteCond %{QUERY_STRING}     a=log.*f=
9 RewriteRule .*                  -               [F,L]
11 RewriteCond %{HTTP_USER_AGENT}  (Slurp|Bot|Spider) [NC]
12 RewriteRule /(blame|blob_plain|blobdiff|diff|snapshot|commitdiff|history|shortlog)/ - [F,L]
14 RewriteBase /
15 RewriteCond %{HTTP_USER_AGENT}  (Slurp|Bot|Spider) [NC]
16 RewriteCond %{QUERY_STRING}     (.*h=.*;)hb=[^;]*(.*)
17 RewriteRule (.*)                $1?%1%2         [R=303,NE,L]
19 RewriteCond %{REQUEST_FILENAME} !-f
20 RewriteCond %{REQUEST_FILENAME} !-d
21 RewriteRule .*                  -               [R=404,L]