Linux 软件免费装
Banner图

IPGeolocation.io – Geo Redirects & Content Control

开发者 ipgeolocation
更新时间 2026年9月3日 14:21
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

geolocation access control ip blocking geo redirect country blocking

下载

1.1.0 1.0.0

详情介绍:

IPGeolocation.io – Geo Redirects & Content Control decides what each visitor sees based on where they are and what IP address they are using. You can send people from one country to a different page, keep unwanted IP addresses away from your site or your login page, and show or hide parts of a page depending on the visitor's location. Everything is set up from one settings screen, and you do not need to write any code. The plugin uses the ipgeolocation.io API to work out a visitor's country and other details. Results are stored for 24 hours per address, so your site stays fast. Main Features Blocking Visitors By IP Address The IP section asks two questions, and you answer them separately: For each one, you can leave it open to everyone, block a list of addresses, or allow only a list of addresses. Locking the login page to your office address is a simple way to stop password guessing bots, and ordinary visitors are not affected at all. IP rules are checked before any location lookup, so blocking somebody uses none of your API credits.

安装:

  1. Upload the plugin folder to /wp-content/plugins/.
  2. Activate the plugin via Plugins → Installed Plugins.
  3. Enter your ipgeolocation.io API key in the plugin settings.
  4. Configure redirect rules, exclusions, country access rules, or IP rules.

屏幕截图:

  • Redirect confirmation popup
  • Country access control settings
  • Conditional content shortcodes
  • IP access control, showing your own address and the two access questions

升级注意事项:

1.2.0 Adds IP address blocking for your site and your login page, and fixes a security problem where a visitor could fake their location using request headers. If your site is behind a CDN or proxy, check the detected address on the settings screen after updating. 1.1.0 This update upgrades the internal API to v3. Existing plan types (Standard, Advanced, Security) will be automatically migrated to Paid Plan. No action required. 1.0.0 Initial release.

常见问题:

Does this plugin redirect logged-in administrators?

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.

Are bots and search engines redirected?

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.

Does the plugin cache API responses?

Yes. IP data is cached for 24 hours per IP.

Does it work with Cloudflare?

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.

Will this slow down my site?

No. API results are cached, and IP rules are a simple local check with no lookup involved.

Do I need an API key to block IP addresses?

No. Blocking by IP address works without a key. Country features need one.

How do I find my own IP address?

The settings screen shows it at the top of the IP section, with a button that adds it to your safe list.

The plugin shows the wrong IP address for me. Why?

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.

I locked myself out of my login page. How do I get back in?

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.

Does it work with a caching plugin?

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.

更新日志:

1.2.0 1.1.0 1.0.0