Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 06, 2012 04:23 PM by bbcompent1
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.
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.
Dec 06, 2012 04:23 PM|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