January 4, 2006 at 10:54 am
Any 1 of you know any trick, of how to restrict a access to a website.
like restricting a access based on certain ip address and certain regions and locations, any idea about how to do that?
<a href="http://www.websolsoftware.com"> For IT jobs click here</a>
*Sukhoi*[font="Arial Narrow"][/font]
January 5, 2006 at 3:27 am
Not sure the code below can help you or not.
If Request.ServerVariables("HTTP_X_FORWARDED_FOR") = "" Then
UserIP = Request.ServerVariables("REMOTE_ADDR")
Else
UserIP = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
End If
'Then Check whether the UserIP is under your IP Control List.
January 5, 2006 at 6:58 am
Depending on what type of admin access you have to the web server and accompanying hardware, this is probably easier done by using a router access control list or by setting security policies on the web server. Here's a page I found on MS TechNet dealing with this for IIS. http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/7586f163-2098-4719-a40b-065b2217d7ba.mspx
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply