From 31d39afde6d716681770c4b1f645431cd3cd61b4 Mon Sep 17 00:00:00 2001 From: Mikhail Sandakov Date: Wed, 14 Feb 2024 08:58:23 +0200 Subject: [PATCH] Update the apache-badbots configuration template to match the current apache-badbots.conf file --- files/gen_badbots | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/files/gen_badbots b/files/gen_badbots index 9c450bca..d9936257 100755 --- a/files/gen_badbots +++ b/files/gen_badbots @@ -60,13 +60,16 @@ cat >| config/filter.d/apache-badbots.conf < -.*"(GET|POST).*HTTP.*"(?:%(badbots)s|%(badbotscustom)s)"$ +failregex = ^ -.*"(GET|POST|HEAD).*HTTP.*"(?:%(badbots)s|%(badbotscustom)s)"$ ignoreregex = +datepattern = ^[^\[]*\[({DATE}) + {^LN-BEG} + # DEV Notes: # List of bad bots fetched from http://www.user-agents.org # Generated on `date` by $0.