A lightweight WordPress plugin that disables XML-RPC completely, helping reduce attack surface and block unwanted XML-RPC access with zero configuration.
If your site does not rely on XML-RPC, leaving it enabled serves little purpose and can create unnecessary exposure. This plugin turns XML-RPC off in a minimal, focused way.
- Disables XML-RPC for WordPress sites that do not need it
- Returns a 403 response for XML-RPC requests
- Works immediately after activation
- No settings page, setup wizard, or maintenance overhead
- Tiny codebase with a single, clear purpose
This plugin is a good fit for:
- site owners who do not use XML-RPC-based publishing or integrations
- agencies and developers hardening client sites
- WordPress installs where XML-RPC is not part of the workflow
Do not use this plugin if your site depends on XML-RPC for publishing or integrations. Disabling XML-RPC can affect tools or services that still rely on it.
- Download
pp-disable-xml-rpc.zipfrom the latest GitHub release. - Upload it via Plugins → Add New → Upload Plugin.
- Activate the plugin.
Once activated, the plugin:
- disables WordPress XML-RPC through the relevant filter
- blocks XML-RPC requests directly
- returns HTTP 403 with an empty body when XML-RPC access is attempted
There are no settings to configure.
No. It is intentionally configuration-free.
It can help reduce exposure on sites that do not need XML-RPC. Like any hardening step, it should be part of a broader security strategy.
It may, if you use a service, app, or workflow that still depends on XML-RPC. Review your stack before activating it on production sites.
This is a deliberately small utility plugin. If you want to review behavior, start with:
pp-disable-xml-rpc.php
XML-RPC requests receive HTTP 403 and stop when this plugin loads. Some WordPress
bootstrap work has already happened at that point. For protection against request
floods, block xmlrpc.php at your web server or edge before PHP runs.
Releases are published to GitHub by pushing a vMAJOR.MINOR.PATCH tag that matches
the PHP version header and readme stable tag. The workflow builds an installable
pp-disable-xml-rpc.zip, excludes development files and listing artwork using
.distignore, and uses the matching readme changelog section as release notes.
The repository's active release-tag
ruleset restricts creating, changing, and deleting these tags to repository admins.
Review the tagged commit before pushing it. Releases use the built-in GitHub
token and do not require WordPress.org credentials.
Playground previews use nightly.link to serve the workflow artifact publicly. Use them only as disposable test sites without production credentials or private data. Fork and Dependabot PRs still upload artifacts but skip posting comments because their workflow tokens cannot write PR comments.
Run the plugin regression checks with:
for scenario in direct xmlrpc normal false; do
php tests/plugin.php "$scenario" || exit 1
doneMIT. See LICENSE.
These cannot be fully managed from files alone, but they will improve the repository page:
- Description: Disable WordPress XML-RPC completely with a lightweight, no-settings plugin.
- Website: https://progressplanner.com/
- Topics:
wordpress,wordpress-plugin,xml-rpc,security,hardening,site-security,progress-planner - Social preview: Use
.wordpress-org/banner-1544x500.pngor create a 1280×640 social card based on the existing banner
