Home / Questions / What is xmlrpc.php and why do attacks target it?
What is xmlrpc.php and why do attacks target it?
xmlrpc.php is an old remote access file. Bots use it to try many passwords in one request, so most sites should block it unless an app needs it.
The file xmlrpc.php lets apps and older tools publish posts to WordPress remotely. Bots use it to try many passwords in one call, which hides the attack from the normal login limit.
Should you block it?
If you do not use a mobile app or a tool that connects through XML-RPC, block it. Most modern sites do not need it. If a tool still needs it, allow only that tool’s address.
Ready to act on this?
Get a written review of your site, or send us your question and we will reply within 24 hours.
How to block it
Use a security plugin option, or add a rule in .htaccess or your host’s firewall that denies requests to xmlrpc.php. Test your site after the change, and check that the contact forms still work.
Ask us if you are not sure whether a tool needs it.
Related services
Related questions
Not sure where your site stands?
Send us the details and we will reply within 24 hours with a clear next step.