Skip to content
Free website migration on every plan, done by our team.Learn more ›
WordPress

What is xmlrpc.php and should you disable it?

What WordPress xmlrpc.php does, why attackers target it, which features still use it, and how to disable or restrict it safely.

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

  1. Security plugin: most have a toggle to disable XML-RPC.
  2. 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.

Ready when you are

Host it where it performs

NVMe speed, offshore privacy and a written SLA — live in minutes on AuroxHost.