[WordPress] 外掛分享: API Write Blocker

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

內容簡介

總結:API Write Blocker 是一個針對安全性的外掛,可以阻止未經授權或匿名用戶通過 REST API、XML-RPC 和 Admin-Ajax 介面執行寫操作。此外,該外掛具有細粒度的控制,支持基於白名單的例外,並保護核心端點而不干擾合法功能,如聯絡表單提交或外掛整合。

問題與答案:
1. API Write Blocker主要用於防止哪些未經授權或匿名用戶透過哪些介面執行寫操作?
答:API Write Blocker 主要用於防止未經授權或匿名用戶通過 REST API、XML-RPC 和 Admin-Ajax 介面執行寫操作。

2. 這個外掛和一般的 API 阻擋程式有什麼不同之處?
答:與一般的 API 阻擋程式不同,這個外掛可以對允許的 HTTP 方法(POST、PUT/PATCH 和 DELETE)進行細粒度控制,支持基於白名單的例外,並保護核心端點而不干擾合法功能。

3. 除了阻止寫相關的 XML-RPC 方法,XML-RPC Write Operation Blocking 還有哪些功能?
答:除了阻止寫相關的 XML-RPC 方法,XML-RPC Write Operation Blocking 還可以返回自定義狀態碼和錯誤消息來阻止 XML-RPC 操作。

4. Admin-Ajax Write Protection 主要用於阻擋哪些敏感的寫相關的 Ajax 操作?
答:Admin-Ajax Write Protection 主要用於阻擋已知的敏感的寫相關的 Ajax 操作,如 save-post、upload-attachment,對於未認證的用戶。

5. 什麼類型的用戶始終被默認允許?
答:認證用戶始終被默認允許。

6. 這個外掛如何避免破壞 WordPress 網站的功能性?
答:這個外掛通過提供自定義錯誤消息和HTTP狀態碼,使得可以在不破壞功能性的情況下強化 WordPress 網站的安全性。

開發者團隊

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

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

原文外掛簡介

API Write Blocker is a security-focused plugin that prevents unauthorized or anonymous users from executing write operations through REST API, XML-RPC, and Admin-Ajax interfaces.
Unlike generic API blockers, this plugin enables fine-grained control over which HTTP methods (POST, PUT/PATCH, DELETE) are allowed, supports whitelist-based exceptions, and protects core endpoints without interfering with legitimate functionalities such as contact form submissions or plugin integrations.
🔐 Key Features
REST API Method-Level Blocking
* Independently block POST, PUT/PATCH, and DELETE requests.
* Whitelist specific REST routes (prefix match supported) to allow legitimate access (e.g., contact forms).
* Configure a custom HTTP status code and error message per request type.
XML-RPC Write Operation Blocking
* Disable only dangerous write-related XML-RPC methods (e.g., wp.newPost, metaWeblog.editPost) while keeping harmless calls untouched.
* Return a custom status code and error message for blocked XML-RPC operations.
Admin-Ajax Write Protection
* Blocks known sensitive write-related Ajax actions (e.g., save-post, upload-attachment) for unauthenticated users.
* Whitelist specific actions used by safe plugins like Contact Form 7.
Flexible Exceptions
* Authenticated users are always allowed by default.
* IP Whitelist support (including CIDR ranges) for external systems or trusted clients.
Custom Response Messages
* Return custom error messages and HTTP status codes for each interface: REST, XML-RPC, and Admin-Ajax.
This plugin is ideal for hardening your WordPress site without breaking functionality.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon