Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions filter.d/wordpress.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## Version 2024/10/15
# Fail2Ban filter for Wordpress login failures

[INCLUDES]
before = common.conf

[Definition]

# pattern: 69.12.111.70 - - [28/Apr/2021:15:09:19 -0400] "GET /wp-login.php HTTP/1.1" 200 8315 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
# 69.12.111.70 - - [28/Apr/2021:15:09:21 -0400] "POST /xmlrpc.php HTTP/1.1" 503 18354 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
# 69.12.111.70 - - [28/Apr/2021:15:09:22 -0400] "POST /wp-login.php HTTP/1.1" 503 18382 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
#
#
# Option: failregex
# Notes.: regex to match the password failure messages in the logfile.

failregex = ^<HOST>.* (GET|POST) (wp-login\.php|xmlrpc\.php)

ignoreregex =
8 changes: 8 additions & 0 deletions jail.d/wordpress.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## Version 2024/10/15
# Fail2Ban jail configuration for wordpress via NGINX logs

[wordpress]

enabled = false
port = http,https
logpath = %(nginx_error_log)s
Loading