跳到内容

REST API Shield & XML-RPC Blocker

v1.0

teamredfox · 2025年10月13日 上架

A security plugin that controls XML-RPC access and specific WordPress REST API endpoints from anonymous users.

正在使用
10+
评分
暂无
累计下载
513
最近更新
2025年11月5日
需要 WordPress 6.8+已测试到 6.8.13PHP 7.4+

贡献者

截图

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.

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums