WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Iulia Cazan v6.8.2

Login IP & Country Restriction

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

Login IP & Country Restriction

The facts

Rating
4.6★ from 52
Active installs
8k+
Price
Free
Last updated
21 May 2026
Added
Nov 2014
Requires WP
5.1
Tested up to
WP 7.0.4
Requires PHP
7.4
Downloads
124,048

Our analysis

AI-assisted

Login IP & Country Restriction is a WordPress plugin designed to enhance login security by restricting access based on IP addresses or countries. You can configure it to allow logins only from specified IPs or countries, ensuring that only authorised users can access your site.

The plugin is set to allow all access by default, so you need to configure it to include your own IP or country to avoid being locked out. Both IP and country restrictions can be used independently or together, and you can set up redirects for restricted access attempts.

Best for: This plugin suits site administrators who want to enhance login security by controlling access based on geographical location or specific IP addresses.

What it does well

  • Allows login restrictions by IP address or country
  • Default setting allows all access for easy initial use
  • Independent configuration for IP and country restrictions
  • Redirects users who are restricted from logging in

Where it falls short

  • Requires configuration to avoid locking out legitimate users
  • No warranty or guarantee of fitness for a particular purpose

Verdict

Login IP & Country Restriction provides a straightforward way to manage login access, but it requires careful setup to ensure you do not inadvertently block yourself or legitimate users.

From the developer

Iulia Cazan's own description of Login IP & Country Restriction, lightly tidied.

This plugin hooks in the authenticate filter. By default, the plugin is set to allow all access and you can configure the plugin to allow the login only from some specified IPs or the specified countries. PLEASE MAKE SURE THAT YOU CONFIGURE THE PLUGIN TO ALLOW YOUR OWN ACCESS. If you set a restriction by IP, then you have to add your own IP (if you are using the plugin in a local setup the IP is 127.0.0.1 or ::1, this is added in your list by default). If you set a restriction by country, then you have to select from the list of countries at least your country. Both types of restrictions work independent, so you can set only one type of restriction or both if you want. Also, you can configure the redirects to frontpage when the URLs are accessed by someone that has a restriction. The restriction is either by country, or not in the specified IPs list.

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.

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for securing a site.

Really Simple Security

Easily improve site security with WordPress Hardening, Two-Factor Authentication (2FA), Login Protection, Vuln...

Free 3M+ installs 4.9★ (8,862)
Wordfence Security

Firewall, Malware Scanner, Two Factor Auth, and Comprehensive Security Features, powered by our 24-hour team....

Free 5M+ installs 4.7★ (4,983)
Akismet Anti-spam: Spam Protection

The best anti-spam protection to block spam comments and spam in a contact form. The most trusted antispam sol...

Free 5M+ installs 4.7★ (1,186)
Loginizer

Loginizer is a WordPress security plugin which helps you fight against bruteforce attacks.

Free 1M+ installs 4.8★ (1,030)
Safe SVG

Enable SVG uploads and sanitize them to stop XML/SVG vulnerabilities in your WordPress website.

Free 1M+ installs 4.9★ (79)
All-In-One Security

Protect your website investment with All-In-One Security (AIOS) – a comprehensive and easy to use security plu...

Free 1M+ installs 4.7★ (1,715)