about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-11-20 14:47:31 +0100
committerAlyssa Ross <hi@alyssa.is>2023-11-20 14:51:32 +0100
commit009e1ecd4a8bd6e8e5f34fcff114b14f5d9fa857 (patch)
tree06a0d66cb274e84bde728253272d354938deb4fc /modules
parentf4d4283e3992c3f559831b1c030cd1fda6d45f98 (diff)
downloadnixlib-009e1ecd4a8bd6e8e5f34fcff114b14f5d9fa857.tar
nixlib-009e1ecd4a8bd6e8e5f34fcff114b14f5d9fa857.tar.gz
nixlib-009e1ecd4a8bd6e8e5f34fcff114b14f5d9fa857.tar.bz2
nixlib-009e1ecd4a8bd6e8e5f34fcff114b14f5d9fa857.tar.lz
nixlib-009e1ecd4a8bd6e8e5f34fcff114b14f5d9fa857.tar.xz
nixlib-009e1ecd4a8bd6e8e5f34fcff114b14f5d9fa857.tar.zst
nixlib-009e1ecd4a8bd6e8e5f34fcff114b14f5d9fa857.zip
modules/cgit: ban thesis-research-bot
Diffstat (limited to 'modules')
-rw-r--r--modules/server/cgit/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/server/cgit/default.nix b/modules/server/cgit/default.nix
index 89a3440acf85..b7c3c56389db 100644
--- a/modules/server/cgit/default.nix
+++ b/modules/server/cgit/default.nix
@@ -35,6 +35,9 @@ let
         if ($http_user_agent = "my-tiny-bot") {
           return 429;
         }
+        if ($http_user_agent = "thesis-research-bot") {
+          return 429;
+        }
       '';
     }) instances)
   ) instancesByVhost;