Created
October 22, 2017 15:49
-
-
Save ravoro/706c1df9447f177ee43bf97ab02ea492 to your computer and use it in GitHub Desktop.
Fail2Ban filter for catching 404 responses.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fail2Ban filter for catching 404 responses. | |
# | |
# Useful if you wish to block an ip that is making too many 404 requests. | |
# Which is typical behavior for a vulnerability scanner. | |
[Definition] | |
failregex = ^<HOST> - .* "(GET|POST|HEAD).*HTTP.*" 404 .*$ | |
ignoreregex = |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment