WordPress.org

الدارجة الجزايرية

  • Themes
  • Plugins
  • News
  • 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

Great plugin

laszlobartucz October 2, 2025
We use a hosting service that oesn’t allow for easy country restrictions – this plugin is our saviour.

partially working

blackossian سبتمبر 11, 2025
it seems it doesn’t block South Africa

Not working anymore

eevan79 أوت 28, 2025
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 فيڥري 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!
Read all 50 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.8.0

  • Tested up to 6.8.2
  • Added more free IP lookup providers

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

Meta

  • Version 6.8.0
  • Last updated 2 months ago
  • Active installations 7,000+
  • WordPress version 5.1 or higher
  • Tested up to 6.8.3
  • 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.6 out of 5 stars.
  • 41 5-star reviews 5 stars 41
  • 3 4-star reviews 4 stars 3
  • 3 3-star reviews 3 stars 3
  • 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:

0 out of 1

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 X (formerly Twitter) account
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • Visit our Facebook page
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our TikTok account
  • Visit our YouTube channel
  • Visit our Tumblr account
Code is Poetry.