Skip to content

Instantly share code, notes, and snippets.

@AysadKozanoglu
Created April 10, 2016 23:26
Show Gist options
  • Save AysadKozanoglu/4b82362287544f27749c24573eeaa25a to your computer and use it in GitHub Desktop.
Save AysadKozanoglu/4b82362287544f27749c24573eeaa25a to your computer and use it in GitHub Desktop.
fail2ban jail settings for nginx 400 444 403 404 filtering on http https
#nano /etc/fail2ban/jail.conf
#
[nginx-4xx]
enabled = true
port = http,https
filter = nginx-4xx
logpath = /usr/local/nginx/logs/access.log
maxretry = 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment