XML-RPC is an older WordPress feature that lets other applications communicate with your site remotely. It still exists for compatibility, but it is also a favourite target for brute force attacks and other abuse. Many sites do not need it at all. Here is what it does, what depends on it and how I decide whether to disable it.
What XML-RPC is
XML-RPC is a protocol that allows remote systems to perform actions on WordPress, such as publishing posts, uploading media or managing comments, by sending requests to xmlrpc.php. It was important before the WordPress REST API existed, enabling mobile apps and desktop blogging tools.
Today, most modern integrations use the REST API instead, but XML-RPC remains enabled by default for backwards compatibility.
Why attackers target it
XML-RPC’s system.multicall method allows many commands in a single request. Attackers use it to test hundreds of passwords at once, bypassing simple login attempt limits that count requests rather than password attempts.
XML-RPC pingbacks have also been abused to make WordPress sites take part in DDoS attacks against other sites, and to reveal information about the server.
| Method | Effort | Server load saved |
|---|---|---|
| Security plugin option | Easy | Some |
| .htaccess or Nginx rule | Moderate | Most |
| Cloudflare rule | Easy | All |
| Disable pingbacks only | Easy | Little |
What uses XML-RPC
Jetpack has historically used XML-RPC to connect sites to WordPress.com services, and the WordPress mobile apps used it for some features. Some older desktop publishing tools, remote management tools and integrations also rely on it.
Check whether you use Jetpack, the mobile app or any remote publishing service before disabling. Newer versions of many tools use the REST API instead.
When it is safe to disable
If you do not use Jetpack, the WordPress mobile app, remote publishing tools or integrations that specifically need XML-RPC, disabling it removes an unnecessary attack surface without any downside. This applies to most business websites.
If unsure, disable it and test the tools you use. Re-enable it if something stops working.
Disabling with a plugin
Several lightweight plugins disable XML-RPC, and most security plugins, including Wordfence and Solid Security, include an option. Plugin-based disabling stops WordPress responding to XML-RPC requests.
The request still reaches PHP, so the server does a little work for each attempt. Blocking at the server or firewall is more efficient for heavy attack traffic.
Blocking at the server
On Apache, a rule in .htaccess can deny access to xmlrpc.php. On Nginx, a location block can return a 403 for the file. This stops requests before WordPress loads, saving resources.
Back up configuration files before editing, and test that the site still works. Your host may add the rule for you.
Blocking with Cloudflare
With Cloudflare, a custom rule blocking requests to xmlrpc.php stops attacks at the edge, before they reach your server at all. If you need XML-RPC for Jetpack, you can allow requests from Jetpack’s IP ranges and block everything else.
See setting up Cloudflare and do you need a WAF.
Partial restrictions
If you need some XML-RPC features, you can disable specific methods, such as system.multicall or pingbacks, while keeping others. Some security plugins offer this option.
Pingbacks can also be turned off in Settings > Discussion, which reduces spam and abuse.
Checking whether it is enabled
Visit yourdomain.com/xmlrpc.php in a browser. If you see ‘XML-RPC server accepts POST requests only’, it is enabled. If you see a 403 or 404 error, it is blocked. Online XML-RPC validators can also test it.
Check again after changing hosts or security settings.
Monitoring XML-RPC traffic
Server logs and security plugins show requests to xmlrpc.php. Large numbers of POST requests from many IP addresses usually indicate an attack. Blocking reduces server load immediately.
See brute force attack protection.
REST API security
The REST API is the modern replacement and is used by the block editor, many plugins and headless setups, so it should not be disabled entirely. However, you can restrict endpoints that reveal information, such as user lists, to logged-in users.
Security plugins can limit REST API access for anonymous visitors without breaking the editor.
Part of a wider strategy
Disabling XML-RPC is one small step. Strong passwords, 2FA, login limits, updates and a firewall matter much more. Treat it as reducing noise and attack surface rather than a complete defence.
See my security hardening checklist.
Pingbacks and trackbacks
Pingbacks and trackbacks notify other blogs when you link to them, using XML-RPC. They were once popular but are now mainly a source of spam and abuse. Attackers have used pingbacks to make WordPress sites send requests to targets as part of DDoS attacks.
Turn off pingbacks and trackbacks in Settings > Discussion for new posts, and disable them on existing posts with a bulk edit. Most business sites lose nothing by doing so, and comment moderation becomes simpler.
Getting help
I review XML-RPC, REST API and login exposure as part of my WordPress security audit and configure blocking through my website protection service.
For login protection, read securing WordPress logins.
Key takeaways
- XML-RPC is an older remote access feature often abused for brute force attacks.
- Most business sites can disable it safely.
- Check whether Jetpack, the mobile app or integrations need it first.
- Block it at the server or firewall to save the most resources.
Frequently asked questions
Is XML-RPC still needed?
Rarely. Most modern tools use the REST API.
Does Jetpack need XML-RPC?
Jetpack has relied on it. Allow Jetpack's IPs if you block it at the firewall.
Will disabling XML-RPC break my site?
Not for most sites. Test the tools you use afterwards.
How do I know if XML-RPC is enabled?
Visit /xmlrpc.php. A message about POST requests means it is enabled.
Should I disable the REST API too?
No. Restrict sensitive endpoints instead, since the editor depends on it.
Does disabling XML-RPC improve speed?
It can reduce server load during attacks.
Does disabling XML-RPC affect SEO?
No. Search engines do not use XML-RPC to crawl or index your site.
Can I block XML-RPC on Shopify?
No need. XML-RPC is a WordPress feature and does not exist on Shopify.
