Linux 软件免费装
Banner图

Login IP & Country Restriction

开发者 Iulia Cazan
更新时间 2026年10月21日 18:36
PHP版本: 7.4 及以上
WordPress版本: 7.2
版权: GPLv2 or later
版权网址: 版权信息

标签

block country login restriction block IP country restriction country firewall

下载

6.2.0 4.1 4.2 5.0 6.0 6.1 6.7.1 6.4.0 1.0.0 3.0 6.2.2 6.6.4 6.6.1 6.7.2 6.8.0 2.0.0 6.3.0 6.8.1 6.5.0 6.6.0 3.4 3.5 3.1 3.2 3.3 3.6 4.0 5.1 6.2.1 6.4.1 6.6.2 6.7.0 6.8.2 6.8.3 6.8.4

详情介绍:

Login IP & Country Restriction hooks into the WordPress authentication system to give you complete control over who can even attempt to access your login page. By default, all access is allowed until you configure specific rules to whitelist or blacklist logins by explicit IP addresses or entire countries. This plugin is highly effective at stopping massive botnet brute-force attempts before they strain your server resources. 🔒 Core Features (100% Free) 💎 Take Your Security Further with Pro Login IP & Country Restriction Pro adds: * Additional rule types * Redirect restricted login (404 or 403 with a custom message) * Lockout duration and individual user lockout * WooCommerce integration (automatically allow the countries of new customers) * Bypass the IP and country restrictions for specific roles * Single IP login per user * Simulate an IP or country to test your rules Explore Login IP & Country Restriction Pro → Important Safety Note: Please ensure you always configure the plugin to allow your own IP address or country before locking down settings so you do not accidentally lock yourself out!

安装:

  1. Upload the login-ip-country-restriction folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Navigate to the new settings panel to set up your allowed IPs and countries.

屏幕截图:

  • IP restriction interface showing easy management of allowed and blocked IPs.
  • Country restriction panel with simple multi-select dropdowns for whitelists and blacklists.
  • Redirect settings to manage blocked visitors.
  • Tools layout for importing/exporting configurations and reviewing debug details.
  • Integration settings and details.

升级注意事项:

None

常见问题:

Do I need a third-party API key for this plugin to work?

No. Out of the box the plugin uses the PHP GeoIP extension when it is available on the server, otherwise the free ipapi.co lookup. Optionally, you can add API keys for the geolocated.io, ip2location.io or geoplugin.net services in the integration settings. The lookup method that works for your server is remembered for a few hours.

My site is behind Cloudflare, what should I do?

Enable the option to trust the Cloudflare visitor IP (HTTP_CF_CONNECTING_IP) in the IPs settings. Enable it only if the site is really behind Cloudflare, because otherwise visitors could spoof that header. Sites that were already using the plugin keep this enabled until the settings are saved.

Can I block both an IP and a country at the same time?

Yes. Both types of restrictions work entirely independently of one another. You can restrict by country, whitelist a few specific external IPs, or use both methods simultaneously.

Help! I locked myself out. What do I do?

If you accidentally lock yourself out by misconfiguring your country or IP whitelist, don't panic. Simply log into your server via FTP or hosting File Manager, rename the plugin folder from login-ip-country-restriction to login-ip-country-restriction-temp to temporarily disable it, log back into WordPress, rename it back, and correct your configuration.

更新日志:

6.8.4