I am using Fail2Ban and I have configured it as needed. This is reading logs from nginx/error.log and is acting depending on configs about maxretry and timing sets. The question is that is this possible to have different rules depending on status codes?
For instance, I want to block anyone getting 10
404 Status code in 5 minutes, but to block anyone getting 3
403 Status code.
Any help would be highly appreciated, thanks in advance.