Skip to content

Instantly share code, notes, and snippets.

@nicklasos
Forked from AysadKozanoglu/jail.conf
Created November 11, 2017 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicklasos/dffecb05bfdc3d4cbb27ad9e353d34c2 to your computer and use it in GitHub Desktop.
Save nicklasos/dffecb05bfdc3d4cbb27ad9e353d34c2 to your computer and use it in GitHub Desktop.
fail2ban nginx 404 400 403 444 filter /etc/fail2ban/filter.d/nginx-4xx.conf
# nano /etc/fail2ban/filter.d/nginx-4xx.conf
#
[Definition]
failregex = ^<HOST>.*"(GET|POST).*" (404|444|403|400) .*$
ignoreregex =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment