• About WordPress
    • About WordPress
    • WordPress.org
    • Documentation
    • Support
    • Feedback
  • Log In
  • Register
Skip to content

WordPress.org

English (South Africa)

  • Home
  • Get Involved
  • About

Plugins

  • My Favorites
  • Beta Testing
  • Developers
Download

Login IP & Country Restriction

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

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.

Hooks

authenticate

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.

Version history

5.1 – Fix parse error.
5.0 – Tested up to 5.6, + minor standards updates for compatibilty, additional support for the PRO version.
4.1 – Tested up to 5.4, Cloudflare compatibility.
4.0 – Tested up to 5.3.2, icons and styles updates, support for extended options.
3.6 – Tested up to 5.2.2, fix settings last tab select after save, sticky letters list, for better navigation, more padding to the countries letters blocks
3.5 – Tested up to 5.2.1, new screenshots with the latest UI
3.4 – Tested up to 5.1.1, UI update, add redirect options, add current user info and restriction info
3.3 – Tested up to 4.9.7, added translations, added geoplugin fallback
3.2 – Tested up to 4.8.3, added the readable info about the login restriction, added the countries letters for a faster navigation
3.1 – Update method
3.0 – The allowed countries are separated visually from the rest of countries + version test
2.0 – Configurable version
1.0 – Initial version

Screenshots

  • How to configure a login IP rescription.
  • How to configure a login restriction by country.
  • How to configure redirects to homepage for visitors that match the restriction condition you setup.

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

Works great!

Florin Oprea Dec 24, 2020
The plugin adds a high level of security for site.

Excellent plug in

frankimbur Dec 16, 2020
This plug in works perfectly for me and I have been a happy paid user for a few years.

First I was like yay…

t-ryder Nov 13, 2020
First I was like yay, no more login attempts by scumbag hackerbots and bla. I had the IP setting that way, that only IPs from my country can access the login page. Installed the plugin to another site I maintain and donated a little amount, because I really liked the plugin. Then I was not able to access my login page anymore. Checked my IP - def. my country IP. So I had to FTP to the plugins, rename the plugin folder and then I could login again. I don't know what went wrong here, maybe it's the service giving the IP info that is not reliable. I like the idea and concept, but I can not saddle that to other users/owners of the pages I maintain.

Works so well!

tinaponting Nov 10, 2020
Works so well and stops unwanted login tries!

Amazing and works

duke8804 Oct 22, 2020
This tool is perfect to add the security list. does exactly as it says.

simple but very useful

yvdich Oct 4, 2020
Thank you for this plugin. I use it on all my client sites. Using WordPress 5.5.1 and Cloudflare. There have been no problems so far.

Contributors & Developers

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

Contributors
  • Iulia Cazan

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.

Change log

5.1

Fix parse error

5.0

  • Tested up to 5.6, + minor standards updates for compatibilty
  • Additional support for the PRO version that include resticting login from a single IP per user, custom forbidden message, simulate IP and country code, users listing restriction info column.

4.1

  • Tested up to 5.4
  • Cloudflare compatibility.

4.0

  • Tested up to 5.3.2
  • Icons and styles updates.
  • Added support for extended options.

3.6

  • Tested up to 5.2.2
  • Fix settings last tab select after save
  • Sticky letters list, for better navigation
  • Added more padding to the countries letters blocks (for better view on initial scroll)

3.5

  • Tested up to 5.2.1
  • Added new screenshots with the latest UI

3.4

  • Tested up to 5.1.1
  • UI update, compact options, responsive
  • Add redirect options
  • Add current user info and restriction info

3.3

  • Tested up to 4.9.7
  • Added translations
  • Added geoplugin fallback

3.2

  • Tested up to 4.8.3
  • Added the readable info about the login restriction
  • Added the countries letters for a faster navigation
  • Added more save buttons

3.1

  • Update the method to retrieve the data

3.0

  • The allowed countries are separated visually from the rest of countries, compatibility update

2.0

  • allow to configure the IP list
  • allow to select the allowed countries

Meta

  • Version: 5.1
  • Last updated: 2 months ago
  • Active installations: 2,000+
  • Tested up to WordPress Version: 5.6
  • Language:
    English (US)
  • Tags:
    authenticatecountry codeiplogin restrictionsecurity
  • Advanced View

Ratings

See all
  • 5 stars 20
  • 4 stars 1
  • 3 stars 1
  • 2 stars 1
  • 1 star 0
Log in to submit a review.

Contributors

  • Iulia Cazan

Support

Issues resolved in last two months:

0 out of 4

View support forum

Donate

Would you like to support the advancement of this plugin?

Donate to this plugin

  • About
  • Blog
  • Hosting
  • Donate
  • Support
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
  • @WordPress
  • WordPress

Code is Poetry.