I have been under a large spam attack against the xmlrpc.php file on multiple sites on a server and have tried everything I can think of to stop it but nothing is working.
So far I have tried the following:
Blocking the ips in iptables - doesnt work
Adding the following rule to .htaccess - doesnt work
Setup the following Fail2ban jail and filter - doesnt work
https://rbgeek.wordpress.com/2014/09/11/block-wordpress-xmlprc-php-ddos-attacks-using-fail2ban/
Tried renaming or deleting the xmlrpc.php file - doesnt work
Installed this WP plugin - doesnt work
https://wordpress.org/plugins/disable-xml-rpc/
Not all wp core and plugins are fully up to date on all sites but none are far behind updates and updating does nothing too.
Right now multiple sites are just flooded with hundreds of POST requests to xmlrpc and the server is at something like 150% cpu and basically unusable.
Finally the only solution I have found is to suspend a site in WHM, then the attack stops for that site but just continues for others and obviously I cant just suspend all the sites.
Any help here would be appreciated
EDIT: and I should add that I have Wordfence running on nearly all the sites which they claim they can block
https://www.wordfence.com/blog/2015/10/should-you-disable-xml-rpc-on-wordpress/
So far I have tried the following:
Blocking the ips in iptables - doesnt work
Adding the following rule to .htaccess - doesnt work
Code:
# Block WordPress xmlrpc.php requests
<Files xmlrpc.php>
order deny,allow
deny from all
</Files>
https://rbgeek.wordpress.com/2014/09/11/block-wordpress-xmlprc-php-ddos-attacks-using-fail2ban/
Tried renaming or deleting the xmlrpc.php file - doesnt work
Installed this WP plugin - doesnt work
https://wordpress.org/plugins/disable-xml-rpc/
Not all wp core and plugins are fully up to date on all sites but none are far behind updates and updating does nothing too.
Right now multiple sites are just flooded with hundreds of POST requests to xmlrpc and the server is at something like 150% cpu and basically unusable.
Finally the only solution I have found is to suspend a site in WHM, then the attack stops for that site but just continues for others and obviously I cant just suspend all the sites.
Any help here would be appreciated
EDIT: and I should add that I have Wordfence running on nearly all the sites which they claim they can block
https://www.wordfence.com/blog/2015/10/should-you-disable-xml-rpc-on-wordpress/
Last edited: