Docs

Disable XML-RPC

3 min readUpdated November 19, 2026

XML-RPC is an old way for apps to talk to WordPress. It runs through a file called xmlrpc.php in the root of your site. Most sites don’t need it, and attackers like it. Shield can switch it off with one setting.

What XML-RPC is, and why it’s a target#

Before the modern REST API existed, XML-RPC was how remote tools published posts, how mobile apps connected, and how other sites sent “pingbacks”. It’s still there in every WordPress install.

Attackers use it because:

  • It accepts a username and password, just like the login page, but it skips the login form. That means no CAPTCHA, no JavaScript check and no 2FA prompt.
  • One request can carry many password guesses at once (a feature called system.multicall). A single request can try hundreds of passwords.
  • It can be used to make your site send traffic to someone else’s, as part of a pingback attack.

What the setting does#

When you turn on Disable XML-RPC, Shield:

  • With the early-block mu-plugin installed (General tab), refuses every request to xmlrpc.php with a 403 error and the plain message “XML-RPC is disabled on this site.”, before WordPress loads. Without the mu-plugin there is no 403: xmlrpc.php still answers, but the next step makes sure no call can log in or do anything.
  • Switches XML-RPC off inside WordPress too, and empties its list of available methods.
  • Removes the X-Pingback header WordPress sends with each page.
  • Removes the “RSD” link that WordPress adds to the <head> of your pages, which advertises XML-RPC to scanners.

Set it up#

  1. Go to Settings → Login Shield and open the Access tab.
  2. At the top, find the XML-RPC section.
  3. Turn on Disable XML-RPC.
  4. Click Save access settings.

To check it worked, open yoursite.com/xmlrpc.php in your browser. With the setting off, WordPress replies “XML-RPC server accepts POST requests only.” With it on and the early-block mu-plugin installed, you’ll get a 403 error. Without the mu-plugin the page still shows that message, but logins and methods are disabled.

A settings panel for XML-RPC on a website. It displays an informational box describing the legacy API as a security risk, followed by a toggle switch labeled “Disable XML-RPC” with an option to turn it off entirely.

Should I turn it on?#

Yes, in most cases. Turn it on unless something you use depends on it.

Leave it off (XML-RPC enabled) if you use:

  • Jetpack. Jetpack has historically used XML-RPC to connect your site to WordPress.com. Check Jetpack’s current documentation first. If Jetpack stops connecting after you disable XML-RPC, turn it back on.
  • The WordPress mobile app, in older setups. Newer versions can use the REST API instead, but this depends on the version and your host.
  • Remote publishing tools, like desktop blog editors or email-to-post services, that connect using XML-RPC.
  • Pingbacks and trackbacks from other blogs. Turning this on stops those from working.

If you aren’t sure, turn it on, then test: open your WordPress mobile app, check Jetpack’s connection screen, and try any publishing tool. Turn the setting off again if something stops working.

Also protected: the Security Checklist#

The Checklist tab includes an XML-RPC item (see “The security checklist”). It shows a warning while XML-RPC is enabled and turns green once you disable it.

If you need XML-RPC#

Disabling is the safest choice. If you must keep it on:

  • Turn on the Lockout features so repeated failures lock an IP out. Failed XML-RPC logins are counted and appear in the event log with the source “XML-RPC”.
  • Consider blocking xmlrpc.php for everyone except the IPs that need it, using your host or CDN.
  • Use the Restrict roles to IP addresses feature, which also covers XML-RPC logins. See “Restrict roles to IP addresses”.
  • Use strong passwords and, where possible, Application Passwords for the apps that connect.

Was this helpful?

This website uses cookies to enhance your browsing experience and ensure the site functions properly. By continuing to use this site, you acknowledge and accept our use of cookies.

Accept All Accept Required Only