Black Friday Black FridayUp to 85% off all WP Ghost plans.48 months from $49, or pay once for lifetime. SHOP NOW

Should You Disable XML-RPC on WordPress?

Moved

This tutorial has moved to the new WP Ghost Knowledge Base where each feature is presented in detail.

View on new site

Yes, for most sites. The REST API has replaced XML-RPC, yet it’s still on by default and bots use its system.multicall method to try hundreds of passwords in one request. Switch on Disable XML-RPC Access in WP Ghost to close it.

What is XML-RPC and what does it do?

XML-RPC is a remote communication protocol that lets external applications interact with your WordPress site. It’s handled by a single file: xmlrpc.php. It was WordPress’s original API, predating the REST API by years. It was designed for publishing posts from mobile apps, managing multiple sites from a single dashboard, enabling trackbacks and pingbacks, and allowing third-party tools to talk to WordPress remotely.

Today, the REST API (/wp-json/) does everything XML-RPC did, with better security, proper authentication, and broader developer support. XML-RPC is effectively obsolete for modern WordPress usage.

Why is XML-RPC dangerous if left enabled?

XML-RPC is one of the most abused WordPress endpoints because of how it handles authentication combined with a feature called system.multicall:

Brute force amplification. The system.multicall method bundles many calls into one HTTP request. Attackers use it to send hundreds of username and password guesses at once: instead of 500 separate login attempts, which a login limiter would see and block, they send one POST to xmlrpc.php that holds 500 attempts. The limiter sees one request.

DDoS amplification through pingbacks. The pingback.ping method can be abused to launch distributed denial-of-service attacks. An attacker sends fake pingback requests to thousands of WordPress sites, all pointing to a single target. Each site makes a request to the target, creating a massive amplified DDoS attack. Your site becomes an unwitting participant.

CMS fingerprinting. A responsive xmlrpc.php file that returns “XML-RPC server accepts POST requests only” immediately confirms WordPress to any scanner.

How do I disable XML-RPC with WP Ghost?

One toggle. Go to WP Ghost > Change Paths > API Security. Switch on Disable XML-RPC Access. Click Save. The xmlrpc.php file now returns a 404 for all requests. No .htaccess editing, no code snippets needed.

To verify, open a private browser and visit yourdomain.com/xmlrpc.php. If you see a 404 instead of the XML-RPC response, it’s working. You can also run a Security Check from WP Ghost > Security Check > Start Scan to confirm.

For complete API security, also consider changing the REST API path and disabling the RSD endpoint in the same API Security tab. For the full guide, see the disable XML-RPC tutorial.

When should I NOT disable XML-RPC?

Only keep XML-RPC enabled if you specifically use a tool or plugin that requires it. The most notable case is Jetpack, which uses XML-RPC for some of its communication with WordPress.com servers. If you use Jetpack, you can whitelist its IP ranges while blocking everyone else. The disable XML-RPC tutorial includes the specific IP ranges to whitelist.

The current WordPress mobile app uses the REST API and works fine without XML-RPC. Older versions of the app relied on XML-RPC, so update to the latest version before disabling. WooCommerce uses the REST API exclusively and is completely unaffected by disabling XML-RPC.

Frequently asked questions

What’s the difference between XML-RPC and the REST API?

Both allow remote communication with WordPress, but they’re different systems. XML-RPC uses a single file (xmlrpc.php) with XML-encoded requests and minimal security controls. The REST API uses URL-based endpoints (/wp-json/) with JSON data, proper authentication, and permissions. The REST API is the modern replacement. For complete API security, secure both: disable XML-RPC and change the REST API path.

Does disabling XML-RPC affect WooCommerce?

No. WooCommerce uses the REST API (/wp-json/wc/v3/), not XML-RPC. Disabling XML-RPC has zero impact on cart, checkout, product pages, or any WooCommerce functionality.

Is this a free feature?

Yes. Disable XML-RPC Access, the custom REST API path and Disable RSD Endpoint from XML-RPC are all in WP Ghost Free.

Does WP Ghost modify WordPress core files?

No. WP Ghost doesn’t delete or change xmlrpc.php; it answers requests to it with a 404. Deactivating WP Ghost restores access to xmlrpc.php right away.