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.