From 292a160c222e5a6cb5836859ced7109424e7b314 Mon Sep 17 00:00:00 2001 From: Mitchell Krog Date: Wed, 24 Apr 2024 14:14:41 +0200 Subject: [PATCH] Update globalblacklist-testing.template [Super Rate Limiting Feature] Ref: #568 --- dev-tools/globalblacklist-testing.template | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dev-tools/globalblacklist-testing.template b/dev-tools/globalblacklist-testing.template index 8619a4598..3489a4ca7 100644 --- a/dev-tools/globalblacklist-testing.template +++ b/dev-tools/globalblacklist-testing.template @@ -18973,6 +18973,7 @@ geo $ratelimited { 0 ""; 1 ""; 2 $binary_remote_addr; + 4 $binary_remote_addr; } # -------------------------- @@ -18985,6 +18986,12 @@ geo $ratelimited { limit_conn_zone $bot_iplimit zone=bot2_connlimit:16m; limit_req_zone $bot_iplimit zone=bot2_reqlimitip:16m rate=2r/s; +# BAD BOT SUPER RATE LIMITING ZONE +# Super Rate limiting will only take effect if on any User-Agents with a value of 4 + + limit_conn_zone $bot_iplimit zone=bot4_connlimit:16m; + limit_req_zone $bot_iplimit zone=bot4_reqlimitip:16m rate=1r/m; + # ========================================== # END SECTION 4 - ACTIVATE BLOCKER FUNCTIONS # ==========================================