Persistent IP Check
bartclarkson - March 27, 2009 - 18:02
| Project: | Restrict Login Access by IP Address |
| Version: | 6.x-1.0-beta2 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
We're batting around the idea of checking the IP persistently across the entire session. The argument is mostly around session-hijacking, roaming laptops, etc.
As it would cause an extra call for admins with every page, it's more aggressive than some might care for, so the option.
It'd be something kind of like this for xxx.module:
+ if ($user -> uid > 0 && variable_get('restrict_by_ip_persistent', 'no') == 'yes')
+ return _restrict_by_ip_login($user);
