Title: IP Based Login
Author: brijeshk89
Published: <strong>7 juli 2013</strong>
Last modified: 11 september 2025

---

Plugins zoeken

![](https://s.w.org/plugins/geopattern-icon/ip-based-login.svg)

# IP Based Login

 Door [brijeshk89](https://profiles.wordpress.org/brijeshk89/)

[Download](https://downloads.wordpress.org/plugin/ip-based-login.2.4.4.zip)

 * [Details](https://nl.wordpress.org/plugins/ip-based-login/#description)
 * [Beoordelingen](https://nl.wordpress.org/plugins/ip-based-login/#reviews)
 *  [Installatie](https://nl.wordpress.org/plugins/ip-based-login/#installation)
 * [Ontwikkeling](https://nl.wordpress.org/plugins/ip-based-login/#developers)

 [Ondersteuning](https://wordpress.org/support/plugin/ip-based-login/)

## Beschrijving

IP Based Login allows you to directly login from an authorized IP without password.
So if you want to allow someone to login but you do not want to share the login 
details just add their IP / IP Range using IP Based Login and when they access your
site they will be logged in without having to enter the login credentials.

Features in IP Based Login include:

[PRO Features]
 – IPv6 Support – EZProxy Support – Analytics – Check sessions usage
and find which university/institution is actively accessing your content – Central
Management for IP ranges – Add your IP ranges on our central server and get the 
IP ranges synced across all your websites automatically.

[Free Features]
 – Create IP ranges – IPv4 Support – Cloudflare support – Choose
the username accessible when accessed by the IP existing in provided range – Bulk
Export/Import IP ranges – Delete IP ranges – Enable/Disable IP ranges – Terminate
Session if IP changed – Licensed under GNU GPL version 3 – Does not affect when 
accessed from any other IPs not existing in any ranges – Safe & Secure – No passwords
saved

[For Publishers]
 Just add University IP Address to the plugin and when the students
access your website from the University campus or EZ Proxy server they will be automatically
authenticated to your WordPress website with the subscriber account you choose while
adding the IP address.

[Developers Section]
 – **is_logged_in_using_ipbl()** function to determine if a
user is logged in with IP Based login plugin or with username/password – Add additional
layer of check before the user is auto logged using the **ipbl_can_auto_login** 
hook – Execute custom PHP code after the user is auto logged in using the **ipbl_auto_logged_in**
hook

## Installatie

Upload the IP Based Login plugin to your blog, Activate it.
 That’s it. You’re done!

## FAQ

### How do I configure EZProxy?

For EZProxy please add /?login to your site URL in the EZProxy config file (Config.
txt)
 E.g. If your website URL is domain.com please add the URL in EZProxy (Config.
txt) as URL https://domain.com/?login

Then Login to WordPress admin panel and go to IP Based Login page from left menu
and select the IP Detection Preference as **(EZProxy) PROXY_REMOTE_ADDR**

That’s it! Try to login from your EZProxy server now.

### How do I temporarily disable auto login and login as another user?

If your IP is in the allowed list you will be logged into the user assigned for 
that IP in the settings, however if you want to disable auto login for some time
and login as another user please hover on the “Logged in by IP Based Login” link
in the admin bar in WordPress admin panel and you will find the option to disable
auto login for 1, 15, 30 or 60 minutes.

If you are auto logged as a non admin user and do not have access to admin panel
you can create a custom floating logout button using the following post :
 https://
wordpress.org/support/topic/reopen-ip-login-as-option/#post-16772750

### How do I determine (using PHP) if the current user is logged in using IP Based Login?

Use the function **is_logged_in_using_ipbl()** which allows you to determine if 
a user is logged in with Auto Login via IP Based login plugin or with manual login
using username/password.
 This function returns true if the user is logged in with
Auto Login via IP Based Login plugin else false. This function can be called from
any other theme/plugin or any PHP file.

### How do I add additional layer of check before the user is auto logged in?

The Hook point “ipbl_can_auto_login” is called just before logging in the user via
IP Based Login plugin. Using this hook you can decide to proceed with auto login
or not. Return false in this hook to disallow auto login, return true to allow auto
login.
 Note : This hook is executed after the IP check with the allowed IPs in 
database so if the accessing IP is not in the allowed list this hook will not be
called.

### How do I execute custom PHP code after the user is auto logged in?

The Hook point “ipbl_auto_logged_in” is called immediately after the user is auto
logged in via IP Based Login plugin. You can use this hook to execute any custom
PHP code after the user is auto logged in.

## Beoordelingen

![](https://secure.gravatar.com/avatar/e6e2e1593cb36e0630bb13b696d4508b382bd30fa8802d1083d0aae183770cda?
s=60&d=retro&r=g)

### 󠀁[Brilliant](https://wordpress.org/support/topic/brilliant-1635/)󠁿

 [vansnaa](https://profiles.wordpress.org/vansnaa/) 20 juli 2024 1 reactie

Excellent and unique plugin, works perfectly. I use it in combination with simple-
membership plugin. Support (even for free version) is the best there is. Many many
thanks to Brijesh Kothari!

![](https://secure.gravatar.com/avatar/fb76436d3a0e5234bd81c6c51740724d1cd3731121736156f45745ba0377f06f?
s=60&d=retro&r=g)

### 󠀁[Great Plugin! Amazing Support!](https://wordpress.org/support/topic/great-plugin-amazing-support-199/)󠁿

 [gwone](https://profiles.wordpress.org/gwone/) 4 juli 2024 1 reactie

Hello! This plugin has been doing just what we needed for a few years now (allowing
subscribers to access their resources while accessing our site from their institution’s
IP range – without the need for handing out additional passwords.) We recently had
configuration change that created some IPv6 issues that we couldn’t figure out. 
The developer responded very quickly, analyzed the issue, and worked with us until
it was resolved. Fantastic! I’ve worked with a variety of Wordpress setups and numerous
3rd party plugins over the last decade. This might be the best support experience
I’ve ever encountered. Big thanks!

![](https://secure.gravatar.com/avatar/117f0a63c149b555965c61655f038503b43159dad9ce582cbfd8d5891963ec1f?
s=60&d=retro&r=g)

### 󠀁[Hint for improvement](https://wordpress.org/support/topic/hint-for-improvement/)󠁿

 [Christoph Letmaier](https://profiles.wordpress.org/chrisiwien/) 8 augustus 2023
5 reacties

Nice, plugin, do exactly what i want. However, i tested it with my ip-address and
a non admin account. Result: i can’t logout anymore, because after log out page 
reload i am logged in again. I wasn’t able to relogin as administrator. I had do
delete the login entry manually in the wordpress database (thanks for putting the
plugin settings in an extra table). You should implement this function: a user should
be able to log out himself, and this should be stored in a cookie. In this way, 
a normal login vie ../wp-admin would be possible again.

![](https://secure.gravatar.com/avatar/a556f0c812162ab6f10fc8748912889c4b1135aafaa4452badcf5b733bb1f91d?
s=60&d=retro&r=g)

### 󠀁[Unique product and works amazing!](https://wordpress.org/support/topic/unique-product-and-works-amazing/)󠁿

 [David Perez](https://profiles.wordpress.org/davidperez/) 24 april 2023

Amazing job done for this plugin. Thanks!

![](https://secure.gravatar.com/avatar/a54b9427f9dd1cf3f20c69f15936a648bda8c9c5fdc882467ffa83761b4cb12c?
s=60&d=retro&r=g)

### 󠀁[Nice Product](https://wordpress.org/support/topic/nice-product-36/)󠁿

 [mrushhcm](https://profiles.wordpress.org/mrushhcm/) 5 mei 2022

This plugin works well for what we need it to do. When running into an issue with
one of the features, they provided support promptly and were very helpful in resolving
the issue.

![](https://secure.gravatar.com/avatar/0d26be441cf8e2dbd8ff421b2b584a3f9a03ea1ea9b5fb3b305b098f889feefd?
s=60&d=retro&r=g)

### 󠀁[unique plugin that saves time on authorization and preserves privacy](https://wordpress.org/support/topic/unique-plugin-that-saves-time-on-authorization-and-preserves-privacy/)󠁿

 [colnago1](https://profiles.wordpress.org/colnago1/) 1 februari 2022

a unique plugin that saves time on authorization and preserves privacy

 [ Lees alle 23 beoordelingen ](https://wordpress.org/support/plugin/ip-based-login/reviews/)

## Bijdragers & ontwikkelaars

“IP Based Login” is open source software. De volgende personen hebben bijgedragen
aan deze plugin.

Bijdragers

 *   [ brijeshk89 ](https://profiles.wordpress.org/brijeshk89/)

“IP Based Login” is vertaald in 4 localen. Dank voor [de vertalers](https://translate.wordpress.org/projects/wp-plugins/ip-based-login/contributors)
voor hun bijdragen.

[Vertaal “IP Based Login” in je eigen taal.](https://translate.wordpress.org/projects/wp-plugins/ip-based-login)

### Interesse in ontwikkeling?

[Bekijk de code](https://plugins.trac.wordpress.org/browser/ip-based-login/), haal
de [SVN repository](https://plugins.svn.wordpress.org/ip-based-login/) op, of abonneer
je op het [ontwikkellog](https://plugins.trac.wordpress.org/log/ip-based-login/)
via [RSS](https://plugins.trac.wordpress.org/log/ip-based-login/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.4.4 11th September 2025

 * Minor Security Fix.

#### 2.4.3 17th July 2025

 * Minor Security Fix.

#### 2.4.2 21st April 2025

 * Added setting to toggle debug mode.

#### 2.4.1 4th January 2025

 * Low Risk Security Fix. Thanks to WPScan Security team for reporting.

#### 2.4.0 26th December 2024

 * Security Fix that existed on Multisite setup. Thanks to WPScan Security team 
   for reporting.
 * [Bug Fix] When both Free and Pro versions were installed and either of the plugin
   was deleted, the plugin data was deleted from the database. It will now be removed
   only when the last plugin is deleted.

#### 2.3.13 20th November 2024

 * [Improvement] Added support auto detect delimiter while importing IP Ranges using
   a CSV file with a delimiter other than the default (,)
 * [Improvement] Compatible with WordPress 6.7

#### 2.3.12 27th July 2024

 * [Improvement] Added Sample CSV file
 * [Improvement] Compatible with WordPress 6.6
 * [Bug Fix] Fixed some warnings

#### 2.3.11 12th April 2024

 * [Improvement] Compatible with WordPress 6.5

#### 2.3.10 22nd November 2023

 * [Improvement] Compatible with WordPress 6.4

#### 2.3.9 3rd November 2023

 * [Bug Fix] Fixed Admin menu for custom capability `manage_ip_ranges`
 * [Bug Fix] Fixed PHP warnings

#### 2.3.8 26th October 2023

 * [Improvement] Admins can now allow other user roles to manage IP Ranges by allowing`
   manage_ip_ranges` capability.

#### 2.3.7 1st September 2023

 * [Pro Feature] EZProxy Support added.

#### 2.3.6 5th June 2023

 * [Pro Feature] Released Analytics plugin for detailed analytics of auto logins.

#### 2.3.5 22nd April 2023

 * [Bug Fix] In some cases when using wp-security-audit-log Auto Login failed. This
   is fixed.

#### 2.3.4 18th April 2023

 * [Bug Fix] In some cases when using wp-security-audit-log Auto Login failed. This
   is fixed.

#### 2.3.3 7th April 2023

 * [Bug Fix] While Exporting IP ranges in the Free version there were some columns
   included which are not allowed to be imported in the Free version. This is fixed.

#### 2.3.2 11th February 2023

 * [Bug Fix] Temporary Disable Auto Login option did not work when the logged in
   username contained a dot (.) This is fixed.

#### 2.3.1 4th February 2023

 * [Bug Fix] In rare cases when the IP Based Login version entry was deleted manually
   from options table it would break the structure of IP Based Login table. This
   is fixed.

#### 2.3.0 2nd November 2022

 * [Feature] Added a hook point “ipbl_auto_logged_in” which is called after logging
   in the user. Using this hook the admin can perform actions after a user is logged
   in.

#### 2.2.9 24th October 2022

 * [Feature] Added a hook point “ipbl_can_auto_login” which is called just before
   logging in the user. Using this hook the admin can decide to proceed with auto
   login or not. Return false to disallow auto login, return true to allow auto 
   login. Note : This hook is executed after the IP check with the allowed IPs in
   database so if the accessing IP is not in the allowed list this hook will not
   be called.

#### 2.2.8 27th September 2022

 * [Bug Fix] Logging IP Based Auto Logins with (WP Activity Log) failed in some 
   cases. This is fixed.

#### 2.2.7 27th August 2022

 * [Task] IP Based Auto Logins will now be logged into (WP Activity Log) plugin

#### 2.2.6 4th May 2022

 * [Bug Fix] Fixed Login Usage values while exporting the IP ranges to CSV

#### 2.2.5 1st May 2022

 * [Improvement] [Pro] Tracking IP usage will now work for ranges that have Unlimited
   usage as well
 * [Bug Fix] Fixed some PHP warnings

#### 2.2.4 27th February 2022

 * [Improvement] [Pro] Settings such as IP detection preference, sync frequency,
   terminate session on IP change and hide IP ranges can now be synced from central
   server across all sites to save time in updating settings on each site
 * [Bug Fix] “is_logged_in_using_ipbl” function was not returining that the session
   was created by IP Based Login plugin on initial page load. This is fixed now.

#### 2.2.3 30th January 2022

 * [Feature] [Pro] Central server can now add multiple IP ranges with same IP with
   unique usernames. IP Based Login will take the 1st username that exists on the
   site and login the visitor into that user.
 * [Feature] [Pro] Central server can now add Include and Exclude sites to decide
   if the site should be allowed to sync the IP range or not.
 * [Bug Fix] If an IP was present in IP Based Login and the username assigned to
   it did not exist on the site, when a visitor with that IP tried to login with
   their username/pass was leading to a redirect loop causing the login to fail.

#### 2.2.2 24th January 2022

 * [Bug Fix] Due to changes in v2.2.1 IP detection failed on some servers. This 
   is fixed now.

#### 2.2.1 23rd January 2022

 * [Bug Fix] Fixed detection of IP when using Cloudflare.

#### 2.2.0 10th January 2022

 * [Feature] [Pro] Added support to sync IP ranges from a central server across 
   all your sites automatically.

#### 2.1.0

 * [Feature] [Pro] Added Redirect link to the IP range, to redirect users to a certain
   page after login.
 * [Feature] [Pro] Added Usage limit to alllow users to login from the allowed IPs
   for certain times.

#### 2.0.7

 * [Bug Fix] Changes to support translations for some left out texts

#### 2.0.6

 * [Feature] Added option to sort the IP ranges by date/username.

#### 2.0.5

 * [Feature] Added a setting to destroy session created by IP Based Login if the
   client’s IP changes.

#### 2.0.4

 * [Improvement] Changes to improve efficiency on sites having high traffic and 
   high number of IP ranges added in IP Based Login.

#### 2.0.3

 * [Improvement] After using the “Disable auto login” option user will be re-directed
   to login page. Previously user was redirected to home page.

#### 2.0.2

 * [Bug Fix] The database structure was not created correctly during activation 
   of the plugin. This was due to a bug introduced in v2.0

#### 2.0.1

 * [Bug Fix] Removed escapeshellcmd function usage as it could be disabled on some
   servers. Instead we are using esc_sql which is safe.

#### 2.0

 * [PRO Feature] Added support for IPv6.

#### 1.5.2

 * Trimed whitespaces while importing the CSV file.
 * Added error reporting for the rows not imported while importing the CSV file.

#### 1.5.1

 * Created the WordPress Test Cookie because some plugins need it. This cookie is
   generally created on login page but since we are auto login this cookie was not
   created hence we need to create it.

#### 1.5.0

 * Added “Delete All IP Ranges” to delete all IP ranges at once
 * Added support for redirect_to parameter to redirect to a given URL after login

#### 1.4.9

 * Improved users list dropdown to load even with over 10k users

#### 1.4.8

 * List all users in dropdown for users list
 * Minor UI improvements

#### 1.4.7

 * Fixed a scenario leading to error about MySQL query syntax in the web server 
   logs
 * Added admin login check while exporting the IP Ranges to CSV file

#### 1.4.6

 * Added setting to choose the method to detect user’s IP e.g. REMOTE_ADDR, HTTP_X_FORWARDED_FOR
   or HTTP_CLIENT_IP

#### 1.4.5

 * Fix for detecting IP when the client is behind proxy

#### 1.4.4

 * Removed usage of Deprecated function get_userdatabylogin(), replaced it with 
   get_user_by()

#### 1.4.3

 * Added support for Translations

#### 1.4.2

 * Added option to Bulk Export/Import IP ranges

#### 1.4.1

 * Display the “Logged in by IP Based Login” only if the user is actually logged
   by our plugin.

#### 1.4.0

 * Added function “is_logged_in_using_ipbl()” which allows admin to determine if
   a user is logged in with IP Based login plugin or with username/password. This
   function can be called from any other theme/plugin or any PHP file.

#### 1.3.9

 * Fixed compatibility issue with PHP 7

#### 1.3.8

 * Now compatible with WordPress 4.2.2
 * Added Settings link on Plugins page itself

#### 1.3.7

 * Compatible with WordPress 4.0
 * Fixed the issue that caused error while adding IP range when there was whitespace
   in Start IP or End IP

#### 1.3.6

 * Added the users list dropdown toggle so that the plugin does not break when the
   site has huge list of users

#### 1.3.5

 * Minor User Interface improvements
 * Added compatibility with “ARYO Activity Log” plugin

#### 1.3.4

 * User can disable auto login temporarily for 15, 30 or 60 minutes

#### 1.3.3

 * Added a note in header stating the user is logged in by IP Based Login
 * Added Error Handling for exising IP ranges
 * Added IP Based Login details in footer

#### 1.3.1

 * Added the list of users in a dropdown while adding an IP range
 * Fixed a typo

#### 1.3

 * Added Option to Enable/Disble IP Ranges
 * Changed Start and End IP columns in database to BIGINT

#### 1.2

 * Compatible with WordPress 3.8

#### 1.1

 * IP Based Login will now drop the database if the plugin is uninstalled and not
   when the plugin is deactivated

#### 1.0

 * Create IP ranges
 * Choose the username accessible when accessed by the IP existing in provided range
 * Delete IP ranges
 * Licensed under GNU GPL version 3
 * Does not affect when accessed from any other IPs not existing in any ranges
 * Safe & Secure
 * No passwords saved

## Meta

 *  Versie **2.4.4**
 *  Laatst geüpdatet **7 maanden geleden**
 *  Actieve installaties **400+**
 *  WordPress versie ** 3.0 of nieuwer **
 *  Getest t/m **6.8.5**
 *  PHP versie ** 5.6 of nieuwer **
 *  Talen
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/ip-based-login/), [English (US)](https://wordpress.org/plugins/ip-based-login/),
   [French (France)](https://fr.wordpress.org/plugins/ip-based-login/), [Spanish (Chile)](https://cl.wordpress.org/plugins/ip-based-login/)
   en [Spanish (Spain)](https://es.wordpress.org/plugins/ip-based-login/).
 *  [Vertaal in je eigen taal](https://translate.wordpress.org/projects/wp-plugins/ip-based-login)
 * Tags
 * [authentication](https://nl.wordpress.org/plugins/tags/authentication/)[auto](https://nl.wordpress.org/plugins/tags/auto/)
   [based](https://nl.wordpress.org/plugins/tags/based/)[ip](https://nl.wordpress.org/plugins/tags/ip/)
   [login](https://nl.wordpress.org/plugins/tags/login/)
 *  [Geavanceerde weergave](https://nl.wordpress.org/plugins/ip-based-login/advanced/)

## Waarderingen

 4.9 van 5 sterren.

 *  [  22 5 sterren beoordelingen     ](https://wordpress.org/support/plugin/ip-based-login/reviews/?filter=5)
 *  [  0 4 sterren beoordelingen     ](https://wordpress.org/support/plugin/ip-based-login/reviews/?filter=4)
 *  [  1 3 ster beoordeling     ](https://wordpress.org/support/plugin/ip-based-login/reviews/?filter=3)
 *  [  0 2 sterren beoordelingen     ](https://wordpress.org/support/plugin/ip-based-login/reviews/?filter=2)
 *  [  0 1 sterren beoordelingen     ](https://wordpress.org/support/plugin/ip-based-login/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/ip-based-login/reviews/#new-post)

[Bekijk alle beoordelingen](https://wordpress.org/support/plugin/ip-based-login/reviews/)

## Bijdragers

 *   [ brijeshk89 ](https://profiles.wordpress.org/brijeshk89/)

## Ondersteuning

Iets te melden? Hulp nodig?

 [Het supportforum bekijken](https://wordpress.org/support/plugin/ip-based-login/)