Skip to content

About

Disable XML-RPC by ProgressPlanner

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Disable XML-RPC by Progress Planner

Disable XML-RPC banner

A lightweight WordPress plugin that disables XML-RPC completely, helping reduce attack surface and block unwanted XML-RPC access with zero configuration.

Why use this plugin?

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.

Benefits

  • 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

Who is this for?

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

Important compatibility note

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.

Installation

  1. Download pp-disable-xml-rpc.zip from the latest GitHub release.
  2. Upload it via Plugins → Add New → Upload Plugin.
  3. Activate the plugin.

What happens after activation?

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.

Frequently asked questions

Does this plugin have a settings page?

No. It is intentionally configuration-free.

Will this improve security?

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.

Will this break anything?

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.

Development

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
done

License

MIT. See LICENSE.

Recommended GitHub About settings

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.png or create a 1280×640 social card based on the existing banner

About

Disable XML-RPC by ProgressPlanner

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages