Here is the technique that I use to protect XML-RPC on my own WordPress sites, using Apache’s alias module
Please Login or Register to see this code
This simple directive blocks all access to by returning a 403 “Forbidden” response for all requests. Very lightweight and very effective.xmlrpc.php