IP whitelisting allows user group to login OR allows block to load

Would like to know if there is any custom code that would allow either of these scenarios:

  • user group to login only if access site via whitelisted IP address

  • block or element to load only if being accessed via whitelisted IP address


would this work?

This would be useful for Staff type users - who can see all client data - as a security measure so that they can only access it within their work network via whitelisted IP addresses

Hi Bob,

Yes I think it should work.

Careful with IP address collection, some regulations need businesses to make it clear how it it collected and processed in a privacy policy.

Also collecting the IP addresses might not be effective sometimes for several reasons (VPN, browser settings etc…)