2 # see htaccess for general restrictions
7 RewriteCond %{HTTP_USER_AGENT} (Slurp|Bot|Spider) [NC]
8 RewriteCond %{QUERY_STRING} a=(blame|blame_data|blame_incremental|blob_plain|blobdiff|diff|snapshot|commitdiff|history|refs|shortlog) [OR]
9 RewriteCond %{QUERY_STRING} a=log.*f=
10 RewriteRule .* - [NS,F,L]
12 RewriteCond %{HTTP_USER_AGENT} (Slurp|Bot|Spider) [NC]
13 RewriteRule /(blame|blame_data|blame_incremental|blob_plain|blobdiff|bundles|diff|snapshot|commitdiff|history|refs|shortlog)(/|$) - [NS,F,L]
15 RewriteCond %{HTTP_USER_AGENT} (Slurp|Bot|Spider) [NC]
16 RewriteCond %{QUERY_STRING} (.*h=.*;)hb=[^;]*(.*)
17 RewriteRule (.*) $1?%1%2 [NS,R=303,NE,L]