BACK TO DIRECTORY

REST API Shield & XML-RPC Blocker

by teamredfox

0.0
(0 ratings)

This plugin is designed to fundamentally strengthen the security of your WordPress site.

By default, WordPress exposes REST API endpoints like the user list (/wp/v2/users) even to unauthenticated users (anonymous users). This poses a risk of information leakage and can serve as a stepping stone for brute-force attacks by enabling username enumeration.

Using this plugin, you can finely adjust the following security settings from the “Settings” -> “General” page in the administration area.

Key Security Features

REST API Anonymous Access Restriction:

  • Core endpoints (such as users, comments, media) and broad routes added by plugins can be specified as a blacklist.

  • Routes necessary for blog display (such as wp/v2/posts) can be specified as a whitelist to exempt them from restrictions.

  • Configure the HTTP status code (e.g., 403 Forbidden) and a custom error message to return upon access denial, preventing attackers from gaining insight into your site structure.

Complete XML-RPC Blocking:

  • Completely disable the XML-RPC functionality (xmlrpc.php) at the core WordPress level.

  • When an attacker attempts access, the plugin responds with a specified HTTP status code and a custom error message, deceptively denying access.

This plugin is highly recommended for all WordPress sites that require enhanced security.

Screenshots

The 'API Security Settings' section added to the 'Settings' -> 'General' page in the admin area.

The 'API Security Settings' section added to the 'Settings' -> 'General' page in the admin area.

REST API route Blacklist configuration screen.

REST API route Blacklist configuration screen.

XML-RPC complete blocking and custom response settings.

XML-RPC complete blocking and custom response settings.

Plugin Details

Active Installs
10
Total Downloads
491
Version
1.0
Requires WP
6.8
Requires PHP
7.4
Tested Up To
6.8.12
Added
2025-10-13
Last Updated
2025-11-05 11:29am GMT

Ratings

5
0
4
0
3
0
2
0
1
0