gitweb on apache2: Block AI crawlers

revision 69e8cad5e52720d3e25f70b6b0274a0938d8e4fe

raw

site.conf

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<VirtualHost *:443>
    RedirectMatch 402 "^/[a-zA-Z0-9._-]+/[a-z0-9]{32}$"
    RedirectMatch 402 "^/[a-zA-Z0-9._-]+/atom"
    RedirectMatch 402 "^/[a-zA-Z0-9._-]+/blobdiff/"
    RedirectMatch 402 "^/[a-zA-Z0-9._-]+/blobdiff_plain/"
    RedirectMatch 402 "^/[a-zA-Z0-9._-]+/blob"
    RedirectMatch 402 "^/[a-zA-Z0-9._-]+/blob_plain"
    RedirectMatch 402 "^/[a-zA-Z0-9._-]+/commit/"
    RedirectMatch 402 "^/[a-zA-Z0-9._-]+/commitdiff/"
    RedirectMatch 402 "^/[a-zA-Z0-9._-]+/commitdiff_plain/"
    RedirectMatch 402 "^/[a-zA-Z0-9._-]+/history/"
    RedirectMatch 402 "^/[a-zA-Z0-9._-]+/log/"
    RedirectMatch 402 "^/[a-zA-Z0-9._-]+/patch/"
    RedirectMatch 402 "^/[a-zA-Z0-9._-]+/rss"
    RedirectMatch 402 "^/[a-zA-Z0-9._-]+/shortlog/"
    RedirectMatch 402 "^/[a-zA-Z0-9._-]+/snapshot/"
    RedirectMatch 402 "^/[a-zA-Z0-9._-]+/tree/"
</VirtualHost>

History