
內容簡介
總結:Simple IP Blocker for Pages 是一個輕量級的安全外掛,可根據訪客的 IP 地址限制特定頁面的訪問。它具有安全的管理界面,支援使用安全 HTML(透過 wp_kses_post)進行個性化設置。
1. Simple IP Blocker for Pages 是一個什麼樣的外掛?
- Simple IP Blocker for Pages 是一個輕量級的安全外掛,可根據訪客的 IP 地址限制特定頁面的訪問。
2. 它的主要功能有哪些?
- 1. Flexible IP Blocking: 使用 CIDR 註記(例如:192.168.1.0/24)可阻止單個 IPv4 地址或整個範圍。
- 2. Page-Level Protection: 選擇要保護的特定頁面,同時保持站點的其他部分可訪問。
- 3. Enhanced Security: 對所有數值進行嚴格的手動消毒(wp_unslash 和 sanitize_text_field),以及使用 absint() 進行系統輸出逃逸。
- 4. Custom Block Messages: 顯示具有安全 HTML 支持的個性化消息,或將被阻止的訪客重定向。
- 5. Self-Blocking Prevention: 內建保護功能可防止管理員意外封鎖自己。
- 6. User-Friendly Interface: 在設置頁面上直接查看被封鎖的IP清單,並輕鬆導航至完整管理界面。
- 7. Real-Time Feedback: 對所有操作(添加、刪除、保存設置)提供成功和警告訊息。
- 8. CDN & Proxy Support: 通過內建的欺騙警告,與 Cloudflare 和代理相容,通過 X-Forwarded-For 標頭。
外掛標籤
開發者團隊
原文外掛簡介
Simple IP Blocker for Pages is a lightweight security plugin to restrict access to specific pages based on visitor IP addresses.
It features a secure administration interface and supports custom block messages with safe HTML (via wp_kses_post) for secure personalization.
Key Features
Flexible IP Blocking: Block individual IPv4 addresses or entire ranges using CIDR notation (e.g., 192.168.1.0/24).
Page-Level Protection: Select specific pages to protect while keeping the rest of your site accessible.
Enhanced Security: Implements strict manual sanitization (wp_unslash and sanitize_text_field) and systematic output escaping with absint() for all numeric values.
Custom Block Messages: Display personalized messages with safe HTML support or redirect blocked visitors.
Self-Blocking Prevention: Built-in safeguard prevents administrators from accidentally locking themselves out.
User-Friendly Interface: View blocked IPs list directly on the settings page with easy navigation to full management interface.
Real-Time Feedback: Success and warning messages for all actions (add, delete, save settings).
CDN & Proxy Support: Compatible with Cloudflare and proxies via X-Forwarded-For headers with built-in spoofing warnings.
