fix(ops/www): block ClaudeBot/GPTBot/Amazonbot from cgit
These bots are doing unthrottled requests to cgit 24/7, and it's starting to annoy me. Change-Id: I6b7d7a68e9becb8ed4b5c52b376c2a60febc6ec6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/13145 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
parent
23839f5fda
commit
27f8a8367a
1 changed files with 4 additions and 0 deletions
|
|
@ -13,6 +13,10 @@
|
|||
forceSSL = true;
|
||||
|
||||
extraConfig = ''
|
||||
if ($http_user_agent ~ (ClaudeBot|GPTBot|Amazonbot)) {
|
||||
return 403;
|
||||
}
|
||||
|
||||
location = /go-get/tvix/build-go {
|
||||
alias ${pkgs.writeText "go-import-metadata.html" ''<html><meta name="go-import" content="code.tvl.fyi/tvix/build-go git https://code.tvl.fyi/depot.git:/tvix/build-go.git"></html>''};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue