To do this you’ll need to edit the .htaccess file within your WordPress directory.
Add the following:
# START Block XML-RPC
<Files xmlrpc.php>
order deny,allow
deny from all
allow from // IP
</Files>
# END Block XML-RPC
Congratulations
+1
1
+1
+1
+1
+1
+1