Skip to content

WordPress XML-RPC protection

One call to xmlrpc.php can test hundreds of passwords, and most login protection never sees the attempt. WordPress XML-RPC protection closes the path and keeps a short list of tools that may use it.

XML-RPC Tunnel add-on in BotBlocker Security

The XML-RPC endpoint on every WordPress site

WordPress XML-RPC protection guards an endpoint that was built for publishing tools and is used for password guessing.

Why one endpoint deserves its own guard

XML-RPC exists so that desktop editors, older mobile apps and a few integrations can post to a site. The protocol accepts a batch of calls in one request, which is efficient for a tool and generous for an attacker.

A login form allows one guess per round trip. A single XML-RPC request can carry many username and password pairs, and the request looks like ordinary API traffic in most logs.

WordPress XML-RPC protection answers that with two layers: a guard at the endpoint that checks the address before anything runs, and a switch that decides whether WordPress keeps the feature alive at all.

How the guard decides

The allowlist

One address, a range or a wildcard per line. An empty list is the safest state, because nobody gets past the guard.

Trusted admin addresses

Addresses already trusted in BotBlocker pass without being copied into a second list, so the two never disagree.

Everyone else

A 403 answer, written to the log with the reason, the browser string and the page that was called.

No list, no entry

With an empty allowlist the guard refuses every request to the endpoint, including a legitimate tool you forgot.

Two layers, two different jobs

The guard runs whether the tunnel switch is on or off. It decides who reaches the endpoint. The switch decides what WordPress does for an address that got through.

Off is the default and the strictest setting: WordPress is told to disable XML-RPC, so even a listed address cannot publish, and pingbacks stop as well. On keeps the protocol alive for listed addresses only.

Turning the switch on with an empty list changes nothing, because the guard stops everyone before WordPress is asked. The switch only works together with the list.

Writing a list short enough to review

An entry can be a single address, an IPv6 address, a block in CIDR notation or an IPv4 wildcard. Text after a hash is a comment, which is where the name of the tool belongs. A line that is not a valid address is ignored, so a typo fails closed rather than open.

Keep the list to the tools that truly need the protocol. Every entry is an address that can try passwords through XML-RPC without passing the guard, so a long list rebuilds the problem the add-on was installed to solve.

A site behind a proxy or CDN sees the proxy address instead of the visitor. The proxy header option reads the forwarded address, and it should stay off unless every request arrives through that proxy, because anybody can write a header.

What stays open, and what stays shut

REST is untouched

The block editor and most modern tools use the REST API. This add-on never changes it, so publishing from the browser works.

The pingback hint goes

The header that advertises the endpoint is removed from your pages in both modes, so scanners have one less way to find it.

A second plugin can win

Another security or speed plugin may also disable XML-RPC. If the endpoint stays closed with the switch on, look there next.

The log has the reason

Refused calls appear as disabled or restricted, which separates a wrong allowlist from an address that never tried.

One of hundreds of BotBlocker capabilities

This add-on covers one job. The core plugin brings the firewall, the visitor check, the login rules and the log; PRO features extend them further. Install BotBlocker, turn on what your site needs and leave the rest off.

BotBlocker protection shield

Questions about the tunnel

Will this break the block editor?
No. The editor uses the REST API, which this add-on does not touch. Only tools that speak XML-RPC are affected.
How do I know whether a tool uses XML-RPC?
Its documentation says so, or its connection fails with a 403 while the rest of the site works. Most modern tools do not need it.
The address is listed but the tool still fails. Why?
The tunnel switch is off, so WordPress refuses actions that need a login. Turn it on after the list is complete.
Is an empty allowlist dangerous?
It is the safest setting. Nobody reaches the endpoint, and the only cost is a tool you have not listed yet.
Can I allow a moving address?
Ask the provider for a stable range, then list that range. A wildcard entry is the other option, at the cost of a wider opening.