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.
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.
I did find one useful nugget that you could drop into your masterpages.
vb.net code
Dim userIPAddress As String = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If String.IsNullOrEmpty(userIPAddress) Then
userIPAddress = Request.ServerVariables("REMOTE_ADDR")
End If
If userIPAddress.StartsWith("111.111.111") Or userIPAddress.StartsWith("444.444.44") Then
' Do something
End If
Ibangajnr
Member
46 Points
129 Posts
Hiding a hosted application from the public
Dec 06, 2012 02:09 PM|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.
bbcompent1
All-Star
33873 Points
8776 Posts
Moderator
Re: Hiding a hosted application from the public
Dec 06, 2012 04:21 PM|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.
bbcompent1
All-Star
33873 Points
8776 Posts
Moderator
Re: Hiding a hosted application from the public
Dec 06, 2012 04:23 PM|LINK
I did find one useful nugget that you could drop into your masterpages.
vb.net code Dim userIPAddress As String = Request.ServerVariables("HTTP_X_FORWARDED_FOR") If String.IsNullOrEmpty(userIPAddress) Then userIPAddress = Request.ServerVariables("REMOTE_ADDR") End If If userIPAddress.StartsWith("111.111.111") Or userIPAddress.StartsWith("444.444.44") Then ' Do something End Ifhttp://stackoverflow.com/questions/4370468/only-allow-certain-ip-range-to-asp-net-page