Login IP & Country Restriction

plugin banner

This plugin hooks in the authenticate filter. You can configure the plugin to allow the login only from some specified IPs or the specified country co

Author:Iulia Cazan (profile at wordpress.org)
WordPress version required:5.1
WordPress version tested:6.7.1
Plugin version:6.6.2
Added to WordPress repository:04-11-2014
Last updated:11-01-2025
Rating, %:94
Rated by:47
Plugin URI:https://iuliacazan.ro/login-ip-country-restri...
Total downloads:79 304
Active installs:7 000+
plugin download
Click to start download

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
FAQ
ChangeLog