RC Geo Access is a WordPress plugin that restricts access to the login page of your WordPress Admin based on the location of the user trying to access it. Restricting access in this way can be a useful way of reducing unwanted login attempts.
To get the location of the user the plugin gets the IP address of the user attempting to access the login page and geo-locates their location by using a geolocation API, currently there are three options available to use:
- IPStack: http://ipstack.com
- IPGeolocation: https://ipgeolocation.io
- OpenLiteSpeed’s local GeoIP variables
Please note: an active API Key is required for IPStack and IPGeolocation for the plugin to function correctly. You can register a free account at either of the website addresses above. Please note they offer varying amounts of location API requests for their free and paid plans, it may be necessary to upgrade to a paid plan to provide an increased amount of requests if your site gets a huge amount of login attempts. The OpenLiteSpeed’s local GeoIP variables option can be used if you are using OpenLiteSpeed server and have a properly configured geolocation database, more information about configuring that is available here:
https://docs.openlitespeed.org/config/advanced/geolocation/#enabling-geolocation
You can view more details about it, download the source code etc (licenced under GPL V2) from the plugin page in the WordPress plugin directory here:
The RC Geo Access plugin code is open source and licensed under the GPL V2. It is available from my Github repository: https://github.com/rickcurran/rc-geo-access
If you’ve found this open source plugin useful then please consider donating to help support development of the RC Site Map plugin and other plugins.
Was this post helpful?