|
|
ChatGPT 8/22/2026 |
|
Yes, it is possible to exempt users connecting from trusted internal IP addresses or specific IP addresses from two-factor authentication (2FA) in PHPRunner. However, this requires some custom coding or configuration adjustments since PHPRunner does not have a built-in feature for IP-based 2FA exemption. Here’s a general approach to implement this:
Here is a simple example of how you might implement this logic in PHP:
|
|
|
|
Sergey Kornilov admin 8/24/2026 |
|
Here is what you can try in BeforeLogin event. This, of course, can be modified, to use a list/array of addresses or some more complex logic to check for the range of addresses. $ip = "127.0.0.1"; // change this to the actual IP address |
|
|
D
|
druck281 8/26/2026 |
|
I added something similar recently but it is a little different approach. I am not bypassing 2FA but I am only allowing the 'Remember Machine' option from trusted IPs. That at least maintains the 2FA protection and it forces it from non-trusted IPs on each login but allows trusted IPs to mute it for 30 days. It has been working well so far. I store a text field in a table called sys_GlobalSettings that allows me to manage the trusted IPs from the Administrator account. On the login page in the BeforeDisplay event, I test to see if the IP is on the list and set a proxy value /**In the JSOnLoad event, I then hide the checkbox for 'Remember Machine' |
|