mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-01 10:09:49 +00:00
23 lines
No EOL
704 B
Text
23 lines
No EOL
704 B
Text
# Place this jail at the bottom of your jail.local file adjust ban and find times as your require
|
|
# This is to be added to an existing jail.local file, this should not be the only contents
|
|
# of your jail.local for Fail2Ban
|
|
|
|
# PLEASE NOTE: This only works on Fail2Ban V 0.9.3 and up.
|
|
|
|
[nginxrepeatoffender]
|
|
enabled = true
|
|
logpath = %(nginx_access_log)s
|
|
filter = nginxrepeatoffender
|
|
banaction = nginxrepeatoffender
|
|
bantime = 86400 ; 1 day
|
|
findtime = 604800 ; 1 week
|
|
maxretry = 20
|
|
|
|
# This is the jail setting for using the Fail2Ban limit-req filter for detecting wp-login attacks
|
|
|
|
[nginx-limit-req]
|
|
enabled = true
|
|
port = http,https
|
|
filter = nginx-limit-req
|
|
logpath = %(nginx_error_log)s
|
|
maxretry = 1 |