Disable XML-RPC
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.phpwith 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.phpstill 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-Pingbackheader 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#
- Go to Settings → Login Shield and open the Access tab.
- At the top, find the XML-RPC section.
- Turn on Disable XML-RPC.
- 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.

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.phpfor 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?
Thanks for your feedback!
✓ Feedback received. Thank you!