![]()
XML-RPC can attract brute-force login attempts and pingback abuse, but blocking its endpoint outright can disconnect Jetpack or break features that rely on it. You can Disable XML-RPC In WordPress safely in the practical sense: keep the endpoint available for Jetpack, remove the pingback methods, and control abusive request volume with measured rate limits and monitoring. Fully disabling XML-RPC while keeping Jetpack connected is generally incompatible, so this guide focuses on reducing exposure without denying legitimate Jetpack requests.
Before changing code or firewall rules, record Jetpack connection status and the features your site uses, then make a restorable backup. You will apply one narrow change at a time, test Jetpack and the site after each change, and use logs to spot blocked legitimate requests. A staging site is ideal; otherwise, choose a low-risk maintenance window and keep a clear rollback path.
Prerequisites and a Safe Baseline
Before changing XML-RPC behavior, make sure you can restore the site and compare Jetpack performance before and after the change. Record the site’s current state first: this helps distinguish a new compatibility problem from an existing connection or security issue.
- A working WordPress site with Jetpack connected and access to its connection status in the dashboard.
- PHP 8.0 or later, or the PHP version currently supported by your WordPress installation.
- A recent, restorable backup of both the database and site files, with access to the restore process.
- WordPress administrator access and SFTP or hosting file-manager access for deploying a small site-specific plugin or editing a child theme.
- Access to hosting, CDN, or web application firewall settings if you plan to add request-rate controls.
- A staging site if available; otherwise, a low-risk maintenance window for testing.
Note which Jetpack features the site actually uses, such as Stats, remote site management, backups, or publishing. Check Jetpack’s connection status and note whether any features are already reporting errors. Also review current hosting, CDN, and firewall rules for restrictions on xmlrpc.php, including rules that may have been added by a security plugin or a previous developer.
Keep a copy of the current rules and configuration before editing them. When you later test a change, alter one control at a time and compare the result with this baseline. That makes it easier to identify the exact rule or code change responsible for a regression and to reverse that change without undoing unrelated security settings.
Baseline First
Step 1: Understand What Jetpack Needs
WordPress exposes XML-RPC through xmlrpc.php, an endpoint that accepts remote requests. Jetpack uses XML-RPC for communication with connected sites, and some Jetpack features depend on that communication. The important distinction is that keeping the endpoint available does not require leaving every XML-RPC method enabled.
A blanket server, CDN, or firewall rule that returns 403 or 404 for every request to xmlrpc.php can interrupt Jetpack connection checks, synchronization, or features that rely on remote communication. Fully blocking the endpoint and expecting Jetpack to remain connected is therefore generally incompatible. Avoid treating a browser response from the endpoint as proof of compatibility: a browser request is not the same as a valid Jetpack request.
Think of protection as three separate controls. The endpoint is the route at xmlrpc.php; keep it reachable if Jetpack needs it. The methods are the operations that XML-RPC accepts; these can be narrowed selectively, such as removing pingback methods while preserving other methods. Request-rate controls limit abusive volume at the host, CDN, or WAF layer without automatically denying all legitimate traffic. Each control has a different effect, so make and test changes separately.
WordPress provides the official reference for the xmlrpc_methods filter, which lets developers modify the available methods. Do not assume a fixed list of Jetpack IP addresses is a safe substitute for testing: addresses and infrastructure can change, and a stale allowlist can block legitimate requests. Prefer provider-supported logging and carefully tuned rate limits, then verify the specific Jetpack features your site uses before proceeding.
Did you know: You can explore our complete guide on Cloudflare SSL settings for step-by-step details.
Step 2: Disable XML-RPC In WordPress Safely by Removing Pingbacks
For a Jetpack-connected site, the safe objective is not to shut down xmlrpc.php. Keep the endpoint available, but remove the two pingback methods commonly targeted for abuse. This narrows XML-RPC functionality without broadly removing methods Jetpack may need. Do not use the xmlrpc_enabled filter or a server rule that blocks the entire endpoint for this change.
A small site-specific plugin is the preferred location because the setting remains active when you change themes. If your project already keeps site-specific functionality in a child theme, its functions.php file is also suitable. Test on staging first, and do not edit the parent theme or remove other XML-RPC methods without a specific, tested reason.
Create wp-content/plugins/pnet-disable-xmlrpc-pingbacks/pnet-disable-xmlrpc-pingbacks.php. Add this complete plugin code, save the file, and activate Disable XML-RPC Pingbacks from the WordPress Plugins screen:
[code lang='php']The filter removes only pingback.ping and pingback.extensions.getPingbacks, then returns the remaining method list. It does not disable the endpoint or deliberately alter Jetpack methods. After activation, check the site for PHP errors and confirm Jetpack remains connected before applying any separate host or WAF rate limits.

Step 3: Add Request Controls Without Blocking Jetpack
Once pingback methods are removed, reduce abusive traffic with a measured rate limit at your hosting provider, CDN, or web application firewall (WAF). Unlike a blanket deny rule, a rate limit can slow repeated requests to xmlrpc.php while leaving the endpoint available for legitimate Jetpack communication. Firewall products differ, so configure this through your provider’s supported controls rather than copying a generic Apache or Nginx rule.
Start by reviewing request logs to understand normal traffic and identify repeated bursts. Configure a conservative, adjustable limit for requests to xmlrpc.php, using the provider’s available time window and client-identification options. Enable logging or alerts for throttled requests. If your provider supports a verified allow path for legitimate service traffic, use it only with a reliable, current method of verification; do not guess at Jetpack IP addresses or rely on a static list you cannot maintain. Keep the endpoint reachable, and do not block system.multicall or other methods without evidence and testing.
Apply one rule change at a time, then check Jetpack connection status and test the features your site depends on. Review WAF or hosting logs for legitimate requests that received a rate-limit response. If Jetpack features fail or logs show valid traffic being throttled, relax or roll back the new rule before making another change. Tune gradually using observed traffic rather than choosing a universal request threshold that may not fit your site.

Test One Rule at a Time
Do not treat a successful browser visit to xmlrpc.php as proof that rate limiting is configured correctly. Verify Jetpack behavior and inspect provider logs together; they show whether requests are reaching the endpoint and whether legitimate traffic is being limited.
You might also like:
Step 4: Verify XML-RPC and Jetpack After the Change
Test the pingback filter and any request-rate rules separately so you can identify which change affects the site. In the WordPress dashboard, confirm Jetpack still reports a connected status. Then test the specific features you rely on, such as Stats, remote site management, backups, or publishing. Allow for each feature’s normal synchronization time and compare its behavior with the baseline you recorded before making changes.
Do not use a browser visit to xmlrpc.php as your only test. The endpoint may return an XML-RPC fault or another response when opened without a valid XML-RPC request; that alone does not show that Jetpack is disconnected, nor does it prove that your security controls work as intended.
- Confirm pingback removal safely. On staging, use a controlled XML-RPC client to request the
pingback.pingmethod. Confirm that the method is unavailable, and avoid sending test pingbacks to real sites or production content. - Exercise Jetpack features. Check the features your site uses and confirm they complete their normal tasks. If a feature fails, note the time and the most recent code or firewall change.
- Review logs. Inspect relevant WordPress and PHP logs, along with host, CDN, or WAF logs. Look for repeated authentication attempts, blocked or throttled requests, and rate-limit events that coincide with Jetpack failures. A log entry alone may need provider context, so compare timestamps and request outcomes.
- Save the verified state. Once checks pass, record the active plugin version and firewall settings, and create a fresh restorable backup.
If a Jetpack feature stops working, reverse the most recent change first, clear relevant caches if applicable, and retest before changing anything else. This staged approach keeps the endpoint available while making it easier to pinpoint a faulty filter or overly aggressive rate limit.
You might also like:
Common Errors and Troubleshooting
When Jetpack or XML-RPC behaves unexpectedly, identify the most recent change and reverse that change before adjusting anything else. Changing one control at a time makes the cause easier to isolate and gives you a clear rollback path.
Jetpack disconnects after a server rule change
Check hosting, CDN, WAF, and .htaccess rules for a blanket deny or redirect affecting xmlrpc.php. Remove the rule that blocks all requests to the endpoint, clear relevant caches, and retest Jetpack. Reconnect only if Jetpack still reports a disconnected state after access has been restored.
A Jetpack feature fails after editing XML-RPC methods
Restore the last known-good filter or deactivate the custom plugin, then test the feature again. An overly broad xmlrpc_methods filter may remove methods Jetpack needs. Once the site is stable, narrow the change to the exact pingback method keys and retest on staging before redeploying.
A PHP fatal error follows plugin installation
Use SFTP or your hosting file manager to rename the custom plugin directory, which deactivates it without requiring dashboard access. Check the file for syntax errors and review PHP error logs. If you cannot restore service promptly, use your tested backup and investigate on staging before trying again.
Pingback tests still appear to work
Confirm the plugin is active and that the filter removes the exact keys pingback.ping and pingback.extensions.getPingbacks. A response from xmlrpc.php only confirms that the endpoint responded; it does not prove that a particular method remains available. Verify method behavior with a controlled test on staging.
Legitimate requests receive rate-limit responses
Use WAF or hosting logs to confirm which rule throttled the requests and when. Reduce the rule’s strictness gradually, then check Jetpack and its affected features. Avoid adding a static IP allowlist unless you have an authoritative, maintained source for those addresses.
The browser displays an XML-RPC fault
A fault or other response when opening the endpoint directly is not, by itself, evidence that Jetpack is broken or that security controls are effective. Test Jetpack features and review request logs instead. Document the working configuration and rollback steps after each successful change.
Conclusion: Keep Jetpack Working While Reducing XML-RPC Risk
Completely blocking xmlrpc.php is not a safe way to preserve Jetpack functionality. Jetpack may rely on the endpoint for communication, so denying every request can disconnect the site or interrupt features. The practical goal is to reduce exposure while keeping legitimate requests available: remove the pingback methods you do not need, then control abusive request volume without broadly disabling XML-RPC.
Keep the change reversible. Start with a restorable backup and a record of Jetpack status, existing security rules, and the features your site uses. Apply the narrow xmlrpc_methods filter to remove only the pingback methods, and confirm the site and Jetpack remain healthy. If you add a host, CDN, or WAF rate limit, make that a separate change. Use provider logs to understand its impact and tune it gradually rather than relying on a universal threshold or an unmaintained IP allowlist.
After each change, test the relevant Jetpack features and review WordPress, PHP, hosting, and firewall logs for blocked or throttled requests. If Jetpack stops working, roll back the most recent rule or code change, restore endpoint access, and retest before trying another adjustment. Do not layer untested exceptions onto a rule that is already disrupting legitimate traffic. This measured approach reduces XML-RPC risk while preserving a clear recovery path. For Jetpack-connected sites, Disable XML-RPC In WordPress should mean restricting unnecessary functionality and abusive traffic, not shutting off the endpoint Jetpack may need.