Login IP & Country Restriction
Login IP & Country Restriction
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.
Installation
- Upload
Login IP & Country Restrictionto the/wp-content/plugins/directory of your application - Login as Admin
- Activate the plugin through the ‘Plugins’ menu in WordPress
Screenshots
Faq
None
Reviews
Great plugin - works wonderfully
By dany84 on November 10, 2025
The plugin stopped all bot attempts to log in onto my website, and I am no longer invaded by notifications of those failed attempts.
Great plugin
By laszlobartucz on October 2, 2025
We use a hosting service that oesn't allow for easy country restrictions - this plugin is our saviour.
partially working
By blackossian on September 11, 2025
it seems it doesn't block South Africa
Not working anymore
By eevan79 on August 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
By mtido on February 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
By jenbodeu on January 18, 2025
Perfect match for my requirements
This plugin needs an update
By narubi on July 17, 2024
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)
By Dennis Bareis (dbareis) on March 10, 2024
I'd like to be able to redirect to a specific page, that doesn't seem possible in free or PRO version.
Love this!
By Marjoline on March 12, 2024
Does not work
By corerhce on January 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.
Changelog
6.8.2
- Tested up to 7.0
See the changelog for detailed information on changes made in the earlier versions.




