jvdmr / mod_evasive

Apache mod_evasive module
GNU General Public License v2.0
15 stars 9 forks source link

Implement DOSLocking option #17

Closed gacha closed 4 years ago

gacha commented 4 years ago

When using DOSSystemCommand to receive notifications you get one notification per IP, because the lock file is created after the first time the IP is blocked. But I would like to get a notification each time the IP address is blocked - that is when the DOSBlockingPeriod is over and the same IP is blocked again then I want to receive a new notification.

The benefit of this is that you can monitor more precisely when someone is blocked and see if one IP is blocked multiple times.

The default behavior will stay the same as the default value for DOSLocking is true. And this probably shouldn't be used together with DOSEmailNotify, to not receive too many emails.