Hi @daniel15 thanks for contacting us regarding this.
Wordfence doesn’t specifically block access to the xmlrpc.php file. It will only stop authentication attempts via xmlrpc.php if the Disable XML-RPC authentication feature is enabled in Wordfence > Login Security.
If you wish to completely block access to it you can add the code below to your .htaccess file.
# Block WordPress xmlrpc.php requests
<Files xmlrpc.php>
order deny,allow
deny from all
</Files>
Let me know how you get on.
Thanks,
Peter.
Hey @wfpeter, thanks for your reply. I did already have the “Disable XML-RPC Authentication” feature enabled, however these brute force attacks were still causing a very heavy load on my server even with that feature disabled. It seems like WordFence doesn’t fully block the requests. I’m not using Apache but I’ll do the equivalent in my Nginx configuration.
Thanks,
Daniel
Hi @daniel15,
Access to that page may have been allowed for other reasons. Commonly, the WordPress app if you have 2FA or ReCAPTCHA enabled and the Jetpack plugin amongst other services do require access to XML-RPC. As a result of this, it is a common route to be tried.
Definitely try the Nginx method of blocking access to xmlrpc.php to see if the activity ceases first, and let us know if there are any reasons why this might not be a suitable long-term solution given the information above.
Thanks,
Peter.