From 3818ef26ca8b02e9f0d6949b0741837c9a0febcf Mon Sep 17 00:00:00 2001 From: Mitchell Krog Date: Fri, 5 Feb 2021 11:14:21 +0200 Subject: [PATCH] Run Test (Detect Random UA strings) --- .dev-tools/beta_conf_files/conf.d/globalblacklist.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.dev-tools/beta_conf_files/conf.d/globalblacklist.conf b/.dev-tools/beta_conf_files/conf.d/globalblacklist.conf index d1c6c9d4a..10b92c635 100644 --- a/.dev-tools/beta_conf_files/conf.d/globalblacklist.conf +++ b/.dev-tools/beta_conf_files/conf.d/globalblacklist.conf @@ -127,6 +127,10 @@ map $http_user_agent $bad_bot { default 0; +# Added 2021-02-05 +# Regex to detect Random UA Strings +"~*(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{12,}" 3; + # ----------------------------------------------------------------------------------- # START CUSTOM BLACKLISTED USER AGENTS ### DO NOT EDIT OR REMOVE THIS LINE AT ALL ### # -----------------------------------------------------------------------------------