Created
April 10, 2016 23:26
-
-
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
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
#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