WordPress Plugin that restricts access to WordPress Login page based on IP Address Registred Country
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.license.md.swp
.readme.md.swp
geoip-login.php
license.md
readme.md

readme.md

GeoIP Login Restriction

STATUS: DO NOT USE, NOT COMPLETE - Planning

Contributors: Mad9Scientist
Tags: security, login
Requires at least: 3.7.1
Tested up to: 3.7.1
Stable tag: 0.1.0
License: BSD
License URI: License.md

A simple plugin to restricts access to the login page based upon location of connected IP Address.

Description

This simple plugin will restricts access to the WordPress Login Page based upon the connecting IP Address registered location (Data Provided by http://freegeoip.net). Selected the countries you wish to allow to have access to your login page and this plug will restrict access to those countries.

Note About Outside Service: FreeGeoIp.net allows up to 10,000 Queries Per Hour if you think you may need more than that, please setup your own instance of the service on your machine. Also if you think you may use serveral 1000's requests per hour but don't want to host an instance your self, please donate to them.

Important Notes about this plugin

  • This is not an All-in-One Solution, this plugin will just block access to the login page for user's IPs that are not in the allowed list.
  • Sometimes IP Address may be registered to a different country than the user may actually be in. e.g. A person that lives 30 minutes from the border of Canada but actually live in the United States may appear to be in Canada.
  • If you run your own instance of the Free Geo IP Service on your own service you will need to change the setting in the WordPress Admin that says, Use My Geo IP Service and put in the URL to your instance.

Running Your Own Geo IP Server

The setup and configuration of this server/service is completely outside the scope of this article. So Don't Contact for Help With This.

You can download the required source files at: https://github.com/fiorix/freegeoip

And Install Guide is: https://github.com/fiorix/freegeoip#install

And Donation Link for FreeGeoIP.net: https://www.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION=DGqEPOFAoAgnLKD2WQepD_1O1Yxjm8cYd-jc0lOBjZsz2OLpDva1Gwr1ZtS&dispatch=5885d80a13c0db1f8e263663d3faee8def8934b92a630e40b7fef61ab7e9fe63

== Installation ==

This section describes how to install the plugin and get it working.

e.g.

= Using The WordPress Dashboard =

  1. Navigate to the 'Add New' in the plugins dashboard
  2. Search for 'Geo IP Login'
  3. Click 'Install Now'
  4. Activate the plugin on the Plugin dashboard

= Uploading in WordPress Dashboard =

  1. Navigate to the 'Add New' in the plugins dashboard
  2. Navigate to the 'Upload' area
  3. Select GeoIP-Login.zip from your computer
  4. Click 'Install Now'
  5. Activate the plugin in the Plugin dashboard

= Using FTP =

  1. Download GeoIP-Login.zip
  2. Extract the GeoIp-Login directory to your computer
  3. Upload the GeoIP-Login directory to the /wp-content/plugins/ directory
  4. Activate the plugin in the Plugin dashboard

== Change Log ==

= 0.1.0 = Initial Development