Last post Dec 06, 2012 12:23 PM by bbcompent1
Dec 06, 2012 10:09 AM|Ibangajnr|LINK
Guys, I have an application that is meant to be hosted on a central server and accessed by registered clients. The clents can access it from their private network, but I do not want unregistered users to even know the application exists (i.e. the application
should not be accessible on the public internet). This is really not my area. Any help will be appreciated.Thanks.
Dec 06, 2012 12:21 PM|bbcompent1|LINK
One way is you can set up firewall rules that only allow specific IP Addresses or ranges. Any host that is not from that IP range will be blocked. However, that topic is not covered by the forums here.
Dec 06, 2012 12:23 PM|bbcompent1|LINK
I did find one useful nugget that you could drop into your masterpages.
Dim userIPAddress As String = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If String.IsNullOrEmpty(userIPAddress) Then
userIPAddress = Request.ServerVariables("REMOTE_ADDR")
If userIPAddress.StartsWith("111.111.111") Or userIPAddress.StartsWith("444.444.44") Then
' Do something