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=
11 RewriteCond %{HTTP_USER_AGENT} (Slurp|Bot|Spider) [NC]
12 RewriteRule /(blame|blob_plain|blobdiff|diff|snapshot|commitdiff|history|shortlog)/ - [F,L]
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 # If you have mod_status enabled AND this host ends up being the default
22 # host (see `apache2ctl -S` output), then you will probably need to
23 # uncomment the next line in order to make `apache2ctl status` work
24 #RewriteCond %{REQUEST_URI} !=/server-status
25 RewriteRule .* - [R=404,L]