I can’t manage to set up the regex for Fail2Ban to block something like this:
"54.88.84.219 - - [21/Dec/2024:13:41:37 +0000] "GET /events/category/stand-up/day/4586-04-01/ HTTP/1.1" 200 46581 "-" "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Amazonbot/0.1; +https://developer.amazon.com/support/amazonbot) Chrome/119.0.6045.214 Safari/537.36""
I tried:
[Definition] failregex = ^ - - [.?] "(GET|POST|HEAD).(HTTP/.)" ."Mozilla/5.0.Amazonbot." ignoreregex =
But for some reason it does not work!