mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 18:50:13 +00:00
16 lines
No EOL
520 B
Text
16 lines
No EOL
520 B
Text
# Fail2ban filter for detecting abuse against wp-login.php attempts
|
|
# Author: Serg G. Brester (sebres)
|
|
# https://github.com/fail2ban/fail2ban
|
|
|
|
# Add into your nginx.conf file the following rate limiting zone
|
|
|
|
# limit_req_zone $binary_remote_addr zone=wp-login:10m rate=1r/s;
|
|
|
|
# see jail.local example for the config of this jail
|
|
[Definition]
|
|
|
|
ngx_limit_req_zones = wp-login
|
|
|
|
failregex = ^\s*\[error\] \d+#\d+: \*\d+ limiting requests, excess: [\d\.]+ by zone "(?:%(ngx_limit_req_zones)s)", client: <HOST>
|
|
|
|
ignoreregex = |