How to fix Wordpress XML-RPC Cyberattacks
To be protected against this cyber attack, do not forget to restrict access to /xmlrpc.php resource only from your IP address (22.214.171.124 in the example below).
For Apache, edit /.htaccess file to add:
<Files "xmlrpc.php"> order deny,allow deny from all allow from 126.96.36.199 </Files>
Save the changes, restart apache and ready!