3 RewriteCond %{HTTP_USER_AGENT} ([sS]lurp|[bB]ot|[sS]pider)
4 RewriteRule ^r/ - [F,L]
6 RewriteCond %{HTTP_USER_AGENT} ([sS]lurp|[bB]ot|[sS]pider)
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} ([sS]lurp|[bB]ot|[sS]pider)
12 RewriteRule /(blame|blob_plain|blobdiff|diff|snapshot|commitdiff|history|shortlog)/ - [F,L]
15 RewriteCond %{HTTP_USER_AGENT} ([sS]lurp|[bB]ot|[sS]pider)
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]
23 # Hide indextext.html, *.perl, *.pm and *.conf files
24 # They have no business being fetched remotely
25 <FilesMatch (?:^(?:indextext.html)$)|(?:\.(?:perl|pm|conf)$)>