| 开发者 |
carlalberto
carl-alberto |
|---|---|
| 更新时间 | 2026年5月13日 19:13 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
wp eib add/remove/list/clear) for scripting and automationCF-Connecting-IPFastly-Client-IPTrue-Client-IPCloudFront-Viewer-AddressX-Sucuri-ClientIPX-Forwarded-ForREMOTE_ADDR when no proxy is in use192.168.1.1192.168.1.0/24 (blocks 192.168.1.0 through 192.168.1.255)10.0.0.* or 172.16.*.* (matches any value in place of *)# are ignored, useful for noteswp eib add <ip>... — Append one or more entries to the blocklistwp eib remove <ip>... — Remove entries from the blocklistwp eib delete <ip>... — Alias for removewp eib list — Show all blocked IPs and ruleswp eib clear — Clear the entire blocklistwp 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
Easy IP Blocker allows you to block unwanted IP addresses from accessing your WordPress site. Navigate to Settings > Easy IP Block Settings, and add entries using exact IPs (192.168.1.1), CIDR ranges (10.0.0.0/24), or wildcards (172.16..). Use lines starting with # to add comments to your blocklist.
Yes. Go to Settings > Easy IP Block Settings > Settings tab and select your CDN or proxy from the "IP Detection Method" dropdown. The plugin will read the correct header to get the real visitor IP. If you are unsure, the plugin auto-detects your CDN and shows a recommendation on the Settings tab.
This is the default for existing installations. It checks multiple headers in order (HTTP_CLIENT_IP, X-Forwarded-For, REMOTE_ADDR). While convenient, it is less secure because attackers can spoof headers. We recommend selecting your specific CDN or "Direct" if you have no proxy.
Yes. Select "Custom header" from the IP Detection Method dropdown and enter the header name your proxy sets (e.g. X-Real-IP). This works with Nginx, HAProxy, or any non-standard proxy configuration.