various: add read-only mode support
[girocco.git] / cgi / htaccess
blob7408eb57317eb0df603ebfaf659e33d474d0c850
1 # cgi/htaccess
2 # see htaccess for general restrictions
4 RewriteEngine On
5 RewriteBase /
7 RewriteCond %{HTTP_USER_AGENT}  (Slurp|Bot|Spider|Riddler|ltx71|Crawl) [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|Riddler|ltx71|Crawl) [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|Riddler|ltx71|Crawl) [NC]
16 RewriteCond %{QUERY_STRING}     (.*h=.*;)hb=[^;]*(.*)
17 RewriteRule (.*)                $1?%1%2         [NS,R=303,NE,L]