Skip to content

Instantly share code, notes, and snippets.

@mhupfauer
Created March 26, 2021 00:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhupfauer/578b63653491247d25ed26b74a119696 to your computer and use it in GitHub Desktop.
Save mhupfauer/578b63653491247d25ed26b74a119696 to your computer and use it in GitHub Desktop.
Fail2Ban regex for WordPress on Caddy (with custom rejection HTTP451 for /xmlrpc.php)
[Definition]
failregex = "common_log":"<HOST>\s(.*)\\"POST \/wp-login.php HTTP\/2.0\\" 200
"common_log":"<HOST>\s(.*)\/xmlrpc.php(.*)\s451
ignoreregex =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment