🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Login IP & Country Restriction icon
Actively maintained Tested with WP 7.1 #2 in block country

Login IP & Country Restriction

Tighten your website security and fight against dictionary bot attacks originating from other countries, by denying access.

Active installs8K+5K+ tier
Downloads · 30d8.3K▼ -12.8% vs prev. 30d
Rating4.6/552 reviews
Health score91/100Excellent
All-time downloads142.9KSince Nov 2014
Support resolved1 / 1100% in last 2 months
RequiresWP 5.1PHP 7.4+
Downloads · 7d6.6K▲ 13.4× week over week
Our verdict

Safe pick

Yes — Login IP & Country Restriction is a safe, well-maintained plugin to use in 2026. It runs on 8K+ sites, is rated 4.6/5 and was last updated 5 days ago, and scores 91/100 on our health check.

  • Loved by users — 4.6/5 from 52 reviews
  • Actively developed — last update 5 days ago
  • Tested with the latest WordPress (7.1)

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

7221.4K2.2KSep 7Oct 21Dec 5
Yesterday175
Daily average (1y)94
Peak day2,890Dec 1, 2026
Last 12 months34.3K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Login IP & Country Restrict… stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
block country #2 3,352 Best block country plugins →
block ip #5 5,938 Best block ip plugins →
country firewall #6 372 Best country firewall plugins →
country restriction #1 667 Best country restriction plugins →
login restriction #2 975 Best login restriction plugins →

Version adoption

Share of active sites per release.

  • 6.886.0%
  • Other14.0%

Rating breakdown

★★★★★★★★★★ 4.6 from 52 reviews

  • 5★82.7%
  • 4★5.8%
  • 3★5.8%
  • 2★3.8%
  • 1★1.9%

About Login IP & Country Restriction

From the official readme · v6.8.6

Description

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.

Installation

  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.

Changelog

None

6.8.6

  • Tested up to 7.2
  • Added the extended IP range options, using ~ (tilde), for example 192.168.~.~
  • The extended IP ranges apply only to IPv4 addresses

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

Full changelog on WordPress.org →

Screenshots

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…
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.

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Login IP & Country Restriction alternatives

All block country plugins →

FAQ

Login IP & Country Restriction: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Login IP & Country Restriction free?

Yes. Login IP & Country Restriction is free to download and use from the official WordPress.org plugin directory.

Is Login IP & Country Restriction safe to use in 2026?

Yes — Login IP & Country Restriction is a safe, well-maintained plugin to use in 2026. It runs on 8K+ sites, is rated 4.6/5 and was last updated 5 days ago, and scores 91/100 on our health check.

How many websites use Login IP & Country Restriction?

Login IP & Country Restriction is active on 8K+ WordPress websites and has been downloaded 142,945 times since it launched in November 2014. It was downloaded 8,268 times in the last 30 days.

Does Login IP & Country Restriction work with WordPress 7.1?

Yes. The developer has tested Login IP & Country Restriction up to WordPress 7.2, the latest release. It requires WordPress 5.1 or newer.

What PHP version does Login IP & Country Restriction need?

Login IP & Country Restriction requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Login IP & Country Restriction last updated?

The latest version, 6.8.6, was released on December 1, 2026 (5 days ago).

Who makes Login IP & Country Restriction?

Login IP & Country Restriction is developed and maintained by Iulia Cazan.

What are the best alternatives to Login IP & Country Restriction?

The most popular alternatives to Login IP & Country Restriction are IP2Location Country Blocker (20K+ installs), Country Access Blocker (1K+ installs) and Block Country (80+ installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open