{
    "title": "How to disable XML-RPC on WordPress: risks, uses and the right method",
    "seo_title": "How to disable XML-RPC on WordPress safely",
    "h1": "How to disable XML-RPC on WordPress: risks, uses and the right method",
    "description": "xmlrpc.php on WordPress: what it is still used for, brute force and pingback risks, what closing it breaks (Jetpack, apps) and the right method.",
    "lead": "xmlrpc.php is one of the most targeted URLs on WordPress sites. What it still does, why bots love it, what breaks if you close it and the right method for your site.",
    "language": "en",
    "locale": "en-US",
    "type": "article",
    "url": "https://www.wp-feint.com/wordpress-xml-rpc-risks/",
    "canonical": "https://www.wp-feint.com/wordpress-xml-rpc-risks/",
    "markdown": "https://www.wp-feint.com/wordpress-xml-rpc-risks/index.md",
    "json": "https://www.wp-feint.com/wordpress-xml-rpc-risks/index.json",
    "published": "2026-08-08T07:00:00+00:00",
    "modified": "2026-11-23T09:44:38+00:00",
    "site": {
        "name": "WP Feint",
        "url": "https://www.wp-feint.com/"
    },
    "translations": [
        {
            "language": "en",
            "hreflang": "en-US",
            "title": "How to disable XML-RPC on WordPress: risks, uses and the right method",
            "url": "https://www.wp-feint.com/wordpress-xml-rpc-risks/",
            "markdown": "https://www.wp-feint.com/wordpress-xml-rpc-risks/index.md",
            "json": "https://www.wp-feint.com/wordpress-xml-rpc-risks/index.json"
        },
        {
            "language": "fr",
            "hreflang": "fr-FR",
            "title": "Comment désactiver XML-RPC sur WordPress : risques, usages et bonne méthode",
            "url": "https://www.wp-feint.com/fr/xml-rpc-wordpress-risques/",
            "markdown": "https://www.wp-feint.com/fr/xml-rpc-wordpress-risques/index.md",
            "json": "https://www.wp-feint.com/fr/xml-rpc-wordpress-risques/index.json"
        },
        {
            "language": "es",
            "hreflang": "es-ES",
            "title": "Cómo desactivar XML-RPC en WordPress: riesgos, usos y método correcto",
            "url": "https://www.wp-feint.com/es/xml-rpc-wordpress-riesgos-desactivar/",
            "markdown": "https://www.wp-feint.com/es/xml-rpc-wordpress-riesgos-desactivar/index.md",
            "json": "https://www.wp-feint.com/es/xml-rpc-wordpress-riesgos-desactivar/index.json"
        },
        {
            "language": "de",
            "hreflang": "de-DE",
            "title": "So deaktivierst du XML-RPC in WordPress: Risiken, Nutzung und die richtige Methode",
            "url": "https://www.wp-feint.com/de/xml-rpc-wordpress-risiken-deaktivieren/",
            "markdown": "https://www.wp-feint.com/de/xml-rpc-wordpress-risiken-deaktivieren/index.md",
            "json": "https://www.wp-feint.com/de/xml-rpc-wordpress-risiken-deaktivieren/index.json"
        },
        {
            "language": "it",
            "hreflang": "it-IT",
            "title": "Come disattivare XML-RPC su WordPress: rischi, usi e metodo giusto",
            "url": "https://www.wp-feint.com/it/xml-rpc-wordpress-rischi-disattivazione/",
            "markdown": "https://www.wp-feint.com/it/xml-rpc-wordpress-rischi-disattivazione/index.md",
            "json": "https://www.wp-feint.com/it/xml-rpc-wordpress-rischi-disattivazione/index.json"
        },
        {
            "language": "pt",
            "hreflang": "pt-BR",
            "title": "Como desativar o XML-RPC no WordPress: riscos, usos e método certo",
            "url": "https://www.wp-feint.com/pt/xml-rpc-wordpress-riscos-desativacao/",
            "markdown": "https://www.wp-feint.com/pt/xml-rpc-wordpress-riscos-desativacao/index.md",
            "json": "https://www.wp-feint.com/pt/xml-rpc-wordpress-riscos-desativacao/index.json"
        },
        {
            "language": "nl",
            "hreflang": "nl-NL",
            "title": "Zo schakel je XML-RPC uit in WordPress: risico’s, gebruik en de juiste methode",
            "url": "https://www.wp-feint.com/nl/xml-rpc-wordpress-risicos/",
            "markdown": "https://www.wp-feint.com/nl/xml-rpc-wordpress-risicos/index.md",
            "json": "https://www.wp-feint.com/nl/xml-rpc-wordpress-risicos/index.json"
        }
    ],
    "headings": [
        {
            "level": 1,
            "text": "How to disable XML-RPC on WordPress: risks, uses and the right method"
        },
        {
            "level": 2,
            "text": "What xmlrpc.php is for"
        },
        {
            "level": 2,
            "text": "The real risks"
        },
        {
            "level": 3,
            "text": "A second door for passwords"
        },
        {
            "level": 3,
            "text": "system.multicall: yesterday's amplification"
        },
        {
            "level": 3,
            "text": "Abused pingbacks"
        },
        {
            "level": 2,
            "text": "What closing it breaks"
        },
        {
            "level": 2,
            "text": "The right method for your site"
        },
        {
            "level": 2,
            "text": "With WP Feint"
        },
        {
            "level": 3,
            "text": "Key takeaways"
        },
        {
            "level": 2,
            "text": "Sources"
        }
    ],
    "body": "In a WordPress site's logs, `/xmlrpc.php` is almost always among the most requested URLs, and rarely by legitimate visitors. This file dates from a time when people published from desktop software. Here you will learn what it still does, what risks it really poses in 2026, what closing it breaks and how to do it properly.\n\nQuick definition: [XML-RPC](https://www.wp-feint.com/glossary/xml-rpc/). Ready-made solution: [WordPress hardening with WP Feint](https://www.wp-feint.com/features/hardening/).\n\n## What xmlrpc.php is for\n\nXML-RPC is a remote procedure call protocol: a program sends an XML request to `xmlrpc.php` naming a method, WordPress runs it and replies in XML. It is **enabled by default** on every WordPress installation. Its main uses are:\n\n- publishing and editing content from an external app or program (`wp.*`, `metaWeblog.*`, `blogger.*` methods);\n- receiving **pingbacks**, the notifications another blog sends you when it links to you (`pingback.ping` method);\n- running certain connected services, in particular **Jetpack**, whose documentation states that the connection with WordPress.com depends on `xmlrpc.php`.\n\nSince WordPress 4.7, the REST API covers most of these needs with a more modern interface. A ticket in the WordPress development tracker (#62789) even calls XML-RPC a \"legacy\" API, while noting that it was still used by the WordPress mobile apps for Android and iOS at the time it was written.\n\n![Visual table: remote publishing with a password, pingbacks without authentication, batched calls with system.multicall, and the main risk of each](https://www.wp-feint.com/media/2026/10/trois-usages-en.webp)\n\n## The real risks\n\n### A second door for passwords\n\nThe publishing methods accept a username and password with every request. A bot can therefore test passwords on `xmlrpc.php` exactly as it would on `wp-login.php`, without loading a page or a cookie. The official WordPress documentation lists `xmlrpc.php` as a frequent [brute force](https://www.wp-feint.com/glossary/brute-force-attack/) target.\n\n### system.multicall: yesterday's amplification\n\nXML-RPC lets you bundle several calls into a single request using `system.multicall`. In October 2015, Sucuri described attacks that used this mechanism to test hundreds of passwords per HTTP request, which bypassed protections that counted requests.\n\nWordPress responded in version 4.4 (ticket #34336): as soon as one authentication fails within an XML-RPC request, all subsequent ones in the same request fail too. The current code still shows this with an `auth_failed` flag. On an up-to-date WordPress, password-guessing amplification therefore no longer works: each request is worth only one useful attempt. The mechanism nonetheless remains a source of load, and firewalls often block it as a precaution, since it is very rarely used legitimately.\n\n### Abused pingbacks\n\nWhen it receives a pingback, WordPress fetches the source page to check that it really contains a link to you. This check is done **without authentication**, from a URL supplied by the sender: your server will therefore query an address chosen by a stranger. This is the basis of **reflection denial of service**. In March 2014, Sucuri reported an attack in which more than 162,000 legitimate, non-hacked WordPress sites were used to send mass requests to a single victim through pingbacks.\n\nThe current WordPress code mitigates the original abuse by announcing the IP address that triggered the pingback, in the user agent and in an `X-Pingback-Forwarded-For` header: the victim can then filter it. This does not eliminate the request itself.\n\n| Risk | Still relevant? | Defense |\n| --- | --- | --- |\n| Password attempts | Yes | Application passwords, two-factor authentication, closing it if unused |\n| Amplification via system.multicall | Greatly reduced since WordPress 4.4 | Blocking system.multicall at the firewall |\n| Pingback reflection (denial of service) | Yes, the site acts as a relay | Removing the pingback.ping method |\n| Server load from bots | Yes | Blocking at the server or CDN level |\n\n*XML-RPC risks on an up-to-date WordPress*\n\n## What closing it breaks\n\nClosing XML-RPC has no effect on most sites, but not on all of them. Before you cut it off, check:\n\n- **Jetpack**: its connection to WordPress.com goes through `xmlrpc.php`. Jetpack recommends allowing only its published IP addresses rather than leaving the file open to everyone. Some hosts (Pantheon, Flywheel, some WP Engine environments) already block this file by default.\n- **Publishing apps**: mobile apps, writing software or automated publishing tools configured with a username and password.\n- **Incoming pingbacks**: you will no longer receive link notifications.\n- **Some older-generation remote management tools**. Recent tools generally go through the REST API or their own plugin.\n\n| Method | What it cuts off | What it leaves | Load avoided |\n| --- | --- | --- | --- |\n| `xmlrpc_enabled` filter set to false | Authenticated methods | Pingbacks and other unauthenticated methods | None: PHP processes every request |\n| `xmlrpc_methods` filter | The removed methods (for example `pingback.ping`) | Everything else | None |\n| Blocking in the security plugin | The whole file | Nothing | Low: WordPress still loads |\n| Server or CDN rule | The whole file, before PHP | Any exceptions by IP address | Maximum |\n\n*Closing methods compared*\n\nA commonly misunderstood point: despite its name, the `xmlrpc_enabled` filter does not disable XML-RPC. Its own comment in the WordPress code states that it only controls methods that require authentication, not pingbacks.\n\n## The right method for your site\n\n![Decision tree: Jetpack active, publishing app, need for pingbacks; if no answer is yes, close xmlrpc.php entirely](https://www.wp-feint.com/media/2026/10/arbre-decision-en.webp)\n\n1. **No use** (the most common case): block `/xmlrpc.php` at the server or [CDN](https://www.wp-feint.com/glossary/cdn/) level. On [Apache](https://www.wp-feint.com/glossary/apache-http-server/) and LiteSpeed, a `<Files \"xmlrpc.php\">` block with `Require all denied`; on Nginx, a `location = /xmlrpc.php` with `deny all;`.\n2. **Jetpack only**: the same block, with an exception for the IP addresses published by Jetpack.\n3. **An app publishes remotely**: keep XML-RPC, remove `pingback.ping` and use **application passwords**, available since WordPress 5.6 on HTTPS sites. They can be revoked one by one and cannot be used to log in to the Dashboard.\n4. **You want to keep pingbacks**: keep the file, but block `system.multicall` at the firewall and enable two-factor authentication on the accounts that publish.\n\nAfter the change, test in a private window: `/xmlrpc.php` should respond with 403 or 404, and the Jetpack connection (Tools, Site Health) should remain valid if you use it.\n\n## With WP Feint\n\nThe free plugin Feint Security handles XML-RPC in its [Hardening](https://www.wp-feint.com/features/hardening/) module. The first level removes the pingback methods and adds the `nosniff` header. The next level blocks `xmlrpc.php` with a 404 response, with a warning that some mobile apps and remote integrations may stop working. Requests to this closed URL are counted by the [bot traps](https://www.wp-feint.com/features/bot-traps/). With WP Feint Pro, an account protected by [two-factor authentication](https://www.wp-feint.com/features/two-factor-authentication/) accepts only application passwords on XML-RPC and the REST API. The blocking is still done by WordPress: to remove the load as well, add a server or CDN rule. Turning off pingbacks also stops pingback spam, but not comment spam, which calls for a [WordPress anti-spam plugin](https://www.wp-feint.com/wordpress-anti-spam/).\n\n*Why and how to disable XML-RPC on WordPress, with the common methods.*\n\n### Key takeaways\n\n- `xmlrpc.php` is enabled by default; most sites no longer need it.\n- Amplification through `system.multicall` has been neutralized since WordPress 4.4, but password attempts and abused pingbacks remain possible.\n- The `xmlrpc_enabled` filter only disables authenticated methods, not pingbacks.\n- Before closing it, check Jetpack and your publishing apps.\n- A server or CDN rule is the only way of closing it that also avoids the load.\n\n## Sources\n\n- [WordPress Developer Resources: Brute Force Attacks](https://developer.wordpress.org/advanced-administration/security/brute-force/)\n- [WordPress Trac: ticket #34336 (system.multicall stops after the first failure)](https://core.trac.wordpress.org/ticket/34336)\n- [WordPress Trac: ticket #62789 (application passwords and XML-RPC)](https://core.trac.wordpress.org/ticket/62789)\n- [WordPress Developer Resources: Application Passwords](https://developer.wordpress.org/advanced-administration/security/application-passwords/)\n\nOther sources consulted: official vendor pages, security research publications and trade press articles.",
    "categories": [
        "Hardening"
    ],
    "format": "application/json"
}