Short answer: xmlrpc.php is an older WordPress interface for remote publishing, pingbacks and some apps. Attackers abuse it for password guessing and pingback floods. If you don't use features that rely on it, disable it with a security plugin or a server rule.
What still uses XML-RPC
- Some older mobile or desktop publishing apps.
- Pingbacks and trackbacks.
- Some older plugin integrations.
Modern apps mostly use the WordPress REST API instead.
Why attackers like it
- It can test many passwords in a single request.
- Pingbacks can be abused to flood other sites.
How to disable it
- Security plugin: most have a toggle to disable XML-RPC.
- Server rule in .htaccess:
<Files xmlrpc.php>
Require all denied
</Files>
See .htaccess basics.
Test afterwards
Check that your publishing apps and integrations still work. If one breaks, allow XML-RPC only for the services that need it.
Frequently asked questions
Will disabling it affect my visitors?
No. Visitors don't use xmlrpc.php.
Does the REST API have the same risk?
The REST API is used by WordPress itself; protect your logins with strong passwords and 2FA. See securing the WordPress login.



