We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c28473 commit f78a8eeCopy full SHA for f78a8ee
fail2ban/data/filter.d/wordpress-xmlrpc.conf
@@ -1,5 +1,7 @@
1
[Definition]
2
-failregex = ^<HOST>.*"POST .*xmlrpc\.php.* HTTP/.*" 200
3
- ^<HOST>.*"POST .*xmlrpc\.php.* HTTP/.*" 403
4
- ^<HOST>.*"POST .*xmlrpc\.php.* HTTP/.*" 405
5
-failregex = ^<HOST> -.*"(GET|POST) /xmlrpc\.php.*HTTP.*" 200
+failregex =
+ # Trường hợp có Cloudflare: Lọc cả mã lỗi và 200 OK
+ ^\S+ -.*"(?:GET|POST) /xmlrpc\.php HTTP.*" (?:403|405|406|200).*"(?:.*,\s*)?<HOST>"$
+
6
+ # Trường hợp không dùng Cloudflare: Lọc cả mã lỗi và 200 OK
7
+ ^<HOST> -.*"(?:GET|POST) /xmlrpc\.php HTTP.*" (?:403|405|406|200).*"-"$
0 commit comments