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 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?
https://stackoverflow.com/questions/25077561/hide-or-show-a-div-element-based-on-ip-address
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…)
would be great if this (IP fencing / IP whitelisting) was a built-in setting on Softr itself.
@bob_t can you DM us via live chat ? we think of enabling this as an enterprise feature
I tested this and it looks like the IP whitelisting only affects loading the block itself, not the actual login access for the user group.
I ran into a similar issue and got around it by rotating my IPs to stay within an approved range. If you’re dealing with dynamic IP problems or blocks loading inconsistently, one option is to buy mobile proxies. They helped me simulate access from different mobile IPs while keeping things smooth for login and visibility. Just make sure those IPs are part of your allowlist.
I also often encountered such problems in the past, as my work involves constant interaction with dynamic IP addresses. Now I’ve found these proxies and am using them for the time being, and everything seems to be okay. I’m just tired of changing providers.
@Lawrence390 not sure I get your use case… you want to block access to fixed IPs but your IPs get changed often ?