RE: Configuring IIS to use IP then Authentication for access

From: Yan Liu [MS] (yanliu@online.microsoft.com)
Date: 10/21/02


From: yanliu@online.microsoft.com (Yan Liu [MS])
Date: Mon, 21 Oct 2002 08:21:04 GMT


Hi,

Definitely you need some programmatic way. Here is an ASP solution in
complement to Thomas's solution:

<%

    Dim ipVFlag

    '... Code to check whether the client IP is valid and set the variable
ipVFlag accordingly

    if ipVFlag = true then
        Response.AddHeader "www-authenticate", "Basic realm=""testserver"""
        Response.Status = "401 Access Denied"
        Response.End
    end if

    Response.Write "User Name:" & Request.ServerVariables("auth_user")
    Response.Write "hello world"

%>

HTH.

Regards,
Yan Liu
This posting is provided "AS IS" with no warranties, and confers no rights.



Relevant Pages

  • RE: IIS security account question ??
    ... I would create an ActiveX DLL for ASP to call with GetUserName and find out ... HTH. ... Regards, ... This posting is provided "AS IS" with no warranties, ...
    (microsoft.public.inetserver.iis.security)
  • Re: how to clear items in a Collection?
    ... I guess i should've just read MSDN before posting this question.. ... >> How do i clearn the items in a collection? ... >> Regards, ...
    (microsoft.public.fox.helpwanted)