Web Application: Blocking Access to pages based on IP

Can anyone help me, what is the best way of blocking access to certain pages/form based on IP. I have an app which is open to the internet world but we want certain pages to be accessed only if users are on machines within the office network.

Thanks in advance.

Subject: There’s more than one way to skin a cat

Hi Effendi,

there a a lot of options:

a) Require login for the pages (most secure)

b) If you don’t want intranet user be prompted use SecureDomino(.com) that allows authentication via IP addresses.

c) Use a OS based Single SignOn solution, so when users log-in to their workstations they would be logged into the browser as well


The backdoor solution:

a) block the URLs on your firewall (VERY tricky!)

b) use computed views and computed subforms, that take the IP range of your intranet into account. You can use the CGI variable “Remote_Addr” to get the requestor’s ip (include a field with that name in your forms).

Your confidential content would be displayed in a subform and the fomula would be something like:

@if(@left(Remote_Addr;10)=“192.168.0.”;“SpecialSubform”;“NormalSubform”)

SImilar for embeded views. With an empty $$ViewTemplateDefault you should be ok.

DISCLAIMER: A determined attacker might be able to break through if not done properly. Authentication is definitly the more appropriate way.

Hth

:slight_smile: stw

:slight_smile: stw

Subject: RE: There’s more than one way to skin a cat

Stephan

Thanks for the response. I had considered using of the technique you have mentioned but just trying to see if some others would be more attractive.

BTW, we’ve met before and perhaps we should met up again sometime.

Regards.