Skip to content

Instantly share code, notes, and snippets.

@sorinpohontu
Last active August 29, 2015 14:28
Show Gist options
  • Select an option

  • Save sorinpohontu/ba878949f8984cd8802a to your computer and use it in GitHub Desktop.

Select an option

Save sorinpohontu/ba878949f8984cd8802a to your computer and use it in GitHub Desktop.
Wordpress Flood Fail2ban Filter [/etc/fail2ban/filter.d/wordpress-flood.conf]
# Fail2ban configuration file
#
# $Revision: 1$
#
[Definition]
# Option: failregex
# Notes : Ban Wordpress Flooders.
# Values: TEXT
#
failregex = ^<HOST> .*POST .*(xmlrpc\.php|wp-login\.php).*
# Option: ignoreregex
# Notes.: regex to ignore. If this regex matches, the line is ignored.
# Values: TEXT
#
ignoreregex =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment