Skip to content

Instantly share code, notes, and snippets.

@ravoro
Created October 22, 2017 15:49
Show Gist options
  • Save ravoro/706c1df9447f177ee43bf97ab02ea492 to your computer and use it in GitHub Desktop.
Save ravoro/706c1df9447f177ee43bf97ab02ea492 to your computer and use it in GitHub Desktop.
Fail2Ban filter for catching 404 responses.
# 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