diff --git a/ops/modules/www/code.tvl.fyi.nix b/ops/modules/www/code.tvl.fyi.nix index ee0211990..b1937770f 100644 --- a/ops/modules/www/code.tvl.fyi.nix +++ b/ops/modules/www/code.tvl.fyi.nix @@ -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" ''''}; }