[WordPress] 外掛分享: REST API Shield & XML-RPC Blocker

首頁外掛目錄 › REST API Shield & XML-RPC Blocker
全新外掛
安裝啟用
尚無評分
158 天前
最後更新
問題解決
WordPress 6.8+ PHP 7.4+ v1.0 上架:2025-10-12

內容簡介

**總結:**
這個外掛旨在根本加強你的 WordPress 網站安全性,避免未經授權的使用者存取 REST API 導致信息外洩的風險,同時預防暴力攻擊。

**問題與答案:**

1. 這個 WordPress 外掛的目的是什麼?
- 這個外掛旨在根本加強你的 WordPress 網站安全性。

2. WordPress 預設的行為可能導致什麼風險?
- WordPress 預設公開 REST API 的端點給未經授權的使用者,例如使用者列表 (/wp/v2/users),可能導致信息外洩風險,同時成為暴力攻擊的跳板。

3. 透過這個外掛,你可以如何調整安全設置?
- 可以從「設置」->「一般」頁面進入管理區域,細調以下安全設置。

4. 這個外掛的重要安全功能有哪些?
- REST API 匿名存取限制
- 可以設定核心端點 (如使用者、評論、媒體) 和插件添加的廣泛路由作為黑名單。
- 可以選擇將必要用於部落格顯示的路由 (如 wp/v2/posts) 設為白名單,免受限制。
- 可以配置 HTTP 狀態碼(例如 403 禁止)和自訂錯誤訊息,在拒絕存取時回應,防止攻擊者獲取你的網站結構洞見。

- 完全 XML-RPC 封鎖
- 在 WordPress 核心層級完全禁用 XML-RPC 功能 (xmlrpc.php)。
- 當攻擊者嘗試存取時,外掛會回應指定的 HTTP 狀態碼和自訂錯誤訊息,虛假地拒絕存取。

5. 哪些 WordPress 網站強烈建議使用這個外掛?
- 這個外掛非常推薦所有需要增強安全性的 WordPress 網站使用。

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「REST API Shield & XML-RPC Blocker」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon