-
-
Save iamkingsleyf/84f9e3d7e5f365fd2da9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Create a filter called 'apache-wp-login' | |
[Definition] | |
failregex = <HOST>.*] "POST /wp-login.php HTTP/.*" 200 | |
ignoreregex = | |
[INCLUDES] | |
before = apache-common.conf | |
# Create a jail | |
[wp-login] | |
enabled = true | |
filter = apache-wp-login | |
action = iptables-multiport[name=wp-login, port="http,https"] | |
sendmail[dest="[email protected]", sendername="Fail2Ban", sender="fail2ban", name="wp-login"] | |
logpath = /var/www/vhosts/system/*/logs/access*_log | |
maxretry = 5 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment