Hi,
On Fri, Aug 30, 2019 at 12:32:14PM +0630, wai phyo wrote:
> I would like to block IP Address that visited 404 pages more than 10 times
> in a minute.
> Please tell me how can I write rule???
I'm not sure that I'ld do it with ModSecurity - if you really want to
build a mechanism to listen the 404 answer code, then it would be
better to catch it before the higher layer.
I mean, you can use an IDS, for example fail2ban[1], which checks
the http log, and if an IP triggers x+1 HTTP 404 in k+1 minute,
then it will be blocked until z+1 minute - on L3.
a.
[1] https://github.com/fail2ban/fail2ban
|