WordPress XML-RPC has been on a slow phase-out since the REST API landed in 4.4. The endpoint /xmlrpc.php is still enabled by default on every WordPress install and accepts authenticated and unauthenticated calls. It is also the single most-attacked endpoint on the public WordPress surface, because wp.getUsersBlogs does credential authentication without the rate-limiting that wp-login.php gets, and the system.multicall method lets an attacker test thousands of password attempts in a single HTTP request. The question is no longer “should I disable it” — it is “can I disable it, or do I have to restrict it because something still depends on it.”
What’s happening
xmlrpc.php is the entry point for the XML-RPC API: the older WordPress remote API used for blog posting from desktop clients (MarsEdit, BlogJet), trackbacks and pingbacks, and the Jetpack connection. On a fresh WordPress 6+ install, you can disable XML-RPC entirely and lose nothing. On an install with Jetpack, Jetpack-related plugins (WP Mobile App, EWWW Cloud), or trackback/pingback integrations enabled, disabling XML-RPC breaks those features. The decision tree is: does anything currently in use need it; if no, disable; if yes, restrict to the IPs or methods that actually need it.
The attack surface justifies the work. A WordPress site that leaves xmlrpc.php open and enabled receives, on average, multiple thousand POST requests per day to that endpoint from brute-force bots. Each request can carry hundreds of multicall login attempts. The traffic alone — never mind the credential risk — is enough to saturate a small server.
How to verify
Determine whether anything on the site currently uses XML-RPC:
# Check Jetpack
wp plugin list | grep -i jetpack
wp option get jetpack_active_modules
# Check trackbacks/pingbacks
wp option get default_pingback_flag
wp option get default_ping_status
# Apps that connect via XML-RPC
wp user list --field=ID | while read uid; do
wp user meta get $uid wp_user-settings 2>/dev/null | grep -i xmlrpc
done
# Recent activity at the endpoint
grep 'POST /xmlrpc.php' /var/log/nginx/access.log | \
awk '{print $1}' | sort | uniq -c | sort -rn | head -10
If the access log shows POSTs from your Jetpack-connected user agent or from known mobile-app user-agents you actually use, those are the dependencies. If the only POSTs come from automated user-agents and unknown IPs, nothing legitimate is using XML-RPC and you can disable.
The fix
Pick the deepest restriction the site allows.
-
If nothing uses XML-RPC, disable it at the web server level. Apache
.htaccess:<Files "xmlrpc.php"> Require all denied </Files>Nginx server block:
location = /xmlrpc.php { deny all; return 403; }This stops requests before WordPress loads, which is the right layer — disabling at the WordPress level still means PHP parses the request and the database connects.
-
If Jetpack uses XML-RPC (it does, even with the REST API option), restrict by source IP. Jetpack’s connection traffic originates from a known set of IPs maintained at jetpack.com/ips-v4.txt. Allow only those:
<Files "xmlrpc.php"> Require ip 192.0.66.0/24 Require ip 192.0.79.0/24 Require ip 192.0.81.0/24 # ... full list from jetpack.com/ips-v4.txt </Files>Update the list when Jetpack publishes new ranges. This is annoying but tractable.
-
Disable specific XML-RPC methods even when the endpoint is allowed. WordPress exposes a filter that removes individual methods:
// mu-plugins/xmlrpc-restrict.php add_filter('xmlrpc_methods', function ($methods) { unset($methods['system.multicall']); unset($methods['system.listMethods']); unset($methods['pingback.ping']); unset($methods['pingback.extensions.getPingbacks']); return $methods; });system.multicallis the credential-attack amplifier — removing it eliminates the most efficient brute-force vector while keeping XML-RPC functional for Jetpack’s specific methods.pingback.pingis the DDoS amplifier — removing it stops the pingback-relay attack pattern. -
Disable pingbacks even if you keep XML-RPC. In Settings → Discussion, uncheck “Allow link notifications from other blogs.” Or with WP-CLI:
wp option update default_ping_status 'closed' wp post update $(wp post list --post_type=post --field=ID --format=csv | tr ',' ' ') --ping_status=closed -
Apply WAF rate-limiting at the endpoint. Even with restrictions, a Cloudflare WAF rule that rate-limits
/xmlrpc.phpto 10 requests per IP per minute is appropriate. The Jetpack traffic is steady-state at much lower rates; bots burst at much higher. -
Verify with a request from outside. After the change:
curl -X POST -d '<methodCall><methodName>system.listMethods</methodName></methodCall>' \ https://example.com/xmlrpc.phpShould return 403 (denied) or a filtered method list, not the default WordPress XML-RPC fault response. If it returns the default response, the restriction did not engage — check that the
.htaccessor nginx block is in the right location and the web server reloaded.
The right state for most WordPress sites in 2026 is XML-RPC disabled entirely. The right state for sites with Jetpack or mobile-app dependencies is XML-RPC restricted by IP and stripped of the dangerous methods. Stack Harbor configures this restriction as part of enterprise WordPress support onboarding, with the Jetpack IP list maintained as part of the routine ops work. If your WordPress access logs show heavy XML-RPC traffic and you are not sure what to do about it, book a hardening review.