WordPress.org

العربية المغربية

  • قوالب
  • إضافات
  • Support
  • About
  • الإتصال
  • Get WordPress
Get WordPress
WordPress.org

Plugin Directory

Login IP & Country Restriction

  • Submit a plugin
  • My favorites
  • Log in
  • Submit a plugin
  • My favorites
  • Log in

Login IP & Country Restriction

By Iulia Cazan
Download
  • Details
  • Reviews
  • Installation
  • Development
Support

Description

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.

Screenshots

  • Login restriction rules and XML-RPC authenticated methods
  • IPs restriction: allow and block specific IPs
  • Countries restriction: allow and block specific countries
  • Redirect options
  • Export and import settings, status/debug details

Installation

  • Upload Login IP & Country Restriction to the /wp-content/plugins/ directory of your application
  • Login as Admin
  • Activate the plugin through the ‘Plugins’ menu in WordPress

FAQ

None

Reviews

Simple but highly effective

mtido فبراير 16, 2025
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

Perfect match for my requirements

jenbodeu يناير 18, 2025
Perfect match for my requirements

This plugin needs an update

narubi يوليوز 17, 2024 1 reply
I have installed this plugin few months ago and it was working really well. However, in the last couple of days there have been many visits from the blocked countries to the wp login page. Please update the plugin IP database ASAP! Thanks!

Good Set of Free Options (Except for redirection)

Dennis Bareis مارس 10, 2024 4 replies
I’d like to be able to redirect to a specific page, that doesn’t seem possible in free or PRO version.

Love this!

Marjoline مارس 12, 2024
<!– wp:paragraph –> <p class=””>It’s working like a charm! So happy!</p> <!– /wp:paragraph –>

Does not work

corerhce يناير 14, 2024
I had only US and outlying US islands available to access the site. Guess wat, every single person in any other countries can access and create accounts with no issues. This does not block anything.
Read all 47 reviews

Contributors & Developers

“Login IP & Country Restriction” is open source software. The following people have contributed to this plugin.

Contributors
  • Iulia Cazan

“Login IP & Country Restriction” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Login IP & Country Restriction” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

6.7.1

  • PHP 8+ compatibility
  • Removed the internationalizes string from default settings to avoid the function _load_textdomain_just_in_time was called incorrectly warnings

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

Meta

  • Version 6.7.1
  • Last updated أسبوعين ago
  • Active installations 7,000+
  • WordPress version 5.1 or higher
  • Tested up to 6.8.1
  • PHP version 7.2 or higher
  • Languages

    English (US) and Romanian.

    Translate into your language

  • Tags
    block countryblock ipcountry restrictionlogin restriction
  • Advanced View

Ratings

4.7 out of 5 stars.
  • 40 5-star reviews 5 stars 40
  • 2 4-star reviews 4 stars 2
  • 2 3-star reviews 3 stars 2
  • 2 2-star reviews 2 stars 2
  • 1 1-star review 1 star 1

Add my review

See all reviews

Contributors

  • Iulia Cazan

Support

Issues resolved in last two months:

1 out of 2

View support forum

Donate

Would you like to support the advancement of this plugin?

Donate to this plugin

  • About
  • News
  • Hosting
  • Privacy
  • Showcase
  • Themes
  • Plugins
  • Patterns
  • Learn
  • Support
  • Developers
  • WordPress.tv ↗
  • Get Involved
  • Events
  • Donate ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

العربية المغربية

  • Visit our Facebook page
  • Visit our X (formerly Twitter) account
  • Visit our Mastodon account
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our YouTube channel
الكود شعر.