| 开发者 | ipgeolocation |
|---|---|
| 更新时间 | 2026年9月3日 14:21 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/.No. Administrators are automatically excluded from redirects, and by default they are never blocked by IP rules either. You can change that in Advanced settings.
Known bots (Google, Bing, Facebook, X and others) are excluded from country redirects. IP rules do not skip them, because any browser can claim to be a search engine. To exempt a crawler from an IP rule, add its addresses to your safe list.
Yes. IP data is cached for 24 hours per IP.
Yes. Choose the Cloudflare option under Advanced settings. The plugin only trusts Cloudflare's headers when the request genuinely came from a Cloudflare server, so nobody can pretend to be at a different address.
No. API results are cached, and IP rules are a simple local check with no lookup involved.
No. Blocking by IP address works without a key. Country features need one.
The settings screen shows it at the top of the IP section, with a button that adds it to your safe list.
Your site is probably behind a CDN or proxy, which replaces the address your server sees. Open Advanced settings and choose the option that matches your setup, then check the address again after saving.
Add this line to your wp-config.php file, log in, fix the rule, then remove the line:
define( 'IPGEO_DISABLE_IP_ACCESS', true );
The plugin normally refuses to save a rule that would lock you out, so this should be rare.
Mostly. Logged-in visitors and uncached requests are handled normally. A page already saved as a cached file may still be served, because that happens before this plugin runs. Exclude any page that must always be checked.