[WordPress] 外掛分享: Easy IP Blocker

首頁外掛目錄 › Easy IP Blocker
WordPress 外掛 Easy IP Blocker 的封面圖片
200+
安裝啟用
★★★★★
5/5 分(1 則評價)
12 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.4+ v2.1.0 上架:2020-09-25

內容簡介

這個外掛輕鬆地從 WordPress 儀表板中阻擋 IP 地址。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.1.0) 或搜尋安裝

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

原文外掛簡介

Easy IP Blocker is a lightweight security plugin that lets you block unwanted IP addresses directly from your WordPress dashboard. Protect your site from malicious traffic, brute-force login attempts, and spam by maintaining a blocklist with just a few clicks.
Your entire blocklist is stored as a single plain-text option — one entry per line. There is no database table, no import/export workflow, and no complicated UI. Just copy, paste, and save. Back up your list by copying the textarea contents to a text file, or restore it by pasting one back in. It is that simple.
Need to block IPs faster? Use the built-in WP-CLI commands to add, remove, or list entries without ever opening the dashboard.
Features:

Block individual IPs, CIDR ranges, or wildcard patterns
CDN/proxy-aware IP detection — supports Cloudflare, Fastly, Akamai, AWS CloudFront, Sucuri, and custom headers
Auto-detects your CDN/proxy and recommends the correct setting
Plain-text flat list — copy and paste to back up, migrate, or restore
WP-CLI support (wp eib add/remove/list/clear) for scripting and automation
Lightweight and fast — no external dependencies, API calls, or extra database tables
Compatible with PHP 7.4 through 8.4
Helps prevent brute-force attacks, spam, and unauthorized access
Comment support — use # to annotate and organize your blocklist
Modern, clean admin interface with tabbed layout

Supported CDN / proxy providers:

Cloudflare — reads CF-Connecting-IP
Fastly — reads Fastly-Client-IP
Akamai — reads True-Client-IP
AWS CloudFront — reads CloudFront-Viewer-Address
Sucuri — reads X-Sucuri-ClientIP
Generic proxy — reads X-Forwarded-For
Custom header — specify any header name your proxy sets
Direct — uses REMOTE_ADDR when no proxy is in use

The plugin auto-detects which CDN or proxy is in front of your site and recommends the correct setting. You can also choose manually from the Settings tab.
Supported blocking formats:

Exact IP — 192.168.1.1
CIDR range — 192.168.1.0/24 (blocks 192.168.1.0 through 192.168.1.255)
Wildcard — 10.0.0.* or 172.16.*.* (matches any value in place of *)
Comments — lines starting with # are ignored, useful for notes

WP-CLI commands:

wp eib add ... — Append one or more entries to the blocklist
wp eib remove ... — Remove entries from the blocklist
wp eib delete ... — Alias for remove
wp eib list — Show all blocked IPs and rules
wp eib clear — Clear the entire blocklist

All commands that accept IPs support multiple entries in a single call. For example:
wp eib add 192.168.1.1 10.0.0.0/24 172.16.0.*
wp eib remove 192.168.1.1 10.0.0.0/24

延伸相關外掛

文章
Filter
Apply Filters
Mastodon