内容をスキップ
WordPress.org

日本語

  • テーマ
  • プラグイン
  • ニュース
    • ドキュメンテーション
    • フォーラム
  • 概要
  • 参加・貢献
  • このサイトについて
  • WordPress を入手
WordPress を入手
WordPress.org

Plugin Directory

Login IP & Country Restriction

  • プラグインを申請
  • お気に入り
  • ログイン
  • プラグインを申請
  • お気に入り
  • ログイン

Login IP & Country Restriction

作者: Iulia Cazan
ダウンロード
  • 詳細
  • レビュー
  • インストール
  • 開発
サポート

説明

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)

  • IP Restriction: Allow or block specific IP addresses (supports local loops like 127.0.0.1 and IPv6).
  • Country Restriction: Whitelist or blacklist entire countries from accessing the authentication filters.
  • Independent Logic: Run IP rules only, country rules only, or combine both together for maximum security.
  • Smart Redirects: Configure custom behavior to automatically redirect restricted traffic back to the front page.
  • XML-RPC Protection: Secure authentication methods beyond standard web forms.
  • Data Portability: Quickly export and import your security settings, and check status details for debugging.

💎 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!

License

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

スクリーンショット

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

インストール

  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.

FAQ

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.

評価

Does what it needs to do

polfre 2026年7月5日
Simple in use and does its job

Great plugin – works wonderfully

dany84 2025年11月10日
The plugin stopped all bot attempts to log in onto my website, and I am no longer invaded by notifications of those failed attempts.

Great plugin

laszlobartucz 2025年10月2日
We use a hosting service that oesn't allow for easy country restrictions – this plugin is our saviour.

partially working

blackossian 2025年9月11日
it seems it doesn't block South Africa

Not working anymore

eevan79 2025年8月28日
Edit: Rating changed because the add-on has been updated and now works. This plugin uses the geoplugin.net service, which is no longer free, so the plugin no longer works either. This is a message: "geoPlugin API is no longer available for free use. To continue access, please upgrade to a paid plan"

Simple but highly effective

mtido 2025年2月16日
I had an increase in incorrect login attempts, it started with a few and then quickly escalated to over 600 per day. From another plugin came the hint with GEO blocking by IP, then I came across this plugin and then had everything blocked except for my own country. Finally only 1-2 per day. Thank you
52件のレビューをすべて表示

貢献者と開発者

Login IP & Country Restriction はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者
  • Iulia Cazan

“Login IP & Country Restriction” は1ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“Login IP & Country Restriction” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログを RSS で購読してみてください。

変更履歴

6.8.4

  • Tested up to 7.2
  • Highlighted the currently active detection method in the intergation tab
  • Assets updates

See the full changelog for detailed information on changes made in the earlier versions.

メタ

  • バージョン 6.8.4
  • 最終更新日 4週間前
  • 有効インストール数 8,000+
  • WordPress バージョン 5.1またはそれ以降
  • 検証済み最新バージョン: 7.2
  • PHP バージョン 7.4またはそれ以降
  • 言語

    English (US)、Romanian.

    プラグインを翻訳

  • タグ
    block countryblock ipcountry restrictionlogin restriction
  • 詳細を表示

評価

5つ星中4.6つ星
  • 43 5-星レビュー 5つ星 43
  • 3 4-星レビュー 4つ星 3
  • 3 3-星レビュー 3つ星 3
  • 2 2-星レビュー 2つ星 2
  • 1 1-星レビュー 1つ星 1

Your review

すべてのレビューを見る

貢献者

  • Iulia Cazan

サポート

意見や質問がありますか ?

サポートフォーラムを表示

寄付

このプラグインが今後も改善できるよう応援しませんか ?

このプラグインに寄付

  • WordPress とは
  • ニュース
  • ホスティング
  • プライバシー
  • ショーケース
  • テーマ
  • プラグイン
  • パターン
  • Learn
  • サポート
  • 開発者
  • WordPress.tv ↗
  • 参加・貢献
  • イベント
  • 寄付 ↗
  • ノベルティグッズ ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org

日本語

The WordPress® trademark is the intellectual property of the WordPress Foundation.

  • X (旧 Twitter) アカウントへ
  • Bluesky アカウントへ
  • Mastodon アカウントへ
  • Threads アカウントへ
  • Facebook ページへ
  • Instagram アカウントへ
  • LinkedIn アカウントへ
  • TikTok アカウントへ
  • YouTube チャンネルへ
  • Tumblr アカウントへ
Code is Poetry.