Re: Grant specified IPS, challenge all others..?

From: jcb (reply_to_newsgroup@nowhere)
Date: 03/06/03


Date: Thu, 06 Mar 2003 06:30:24 +0000
From: jcb <reply_to_newsgroup@nowhere>


Hi,
very hardcoded.

<%
dim ip
ip = request.servervariables("remote_addr")
'----------------------------------------------------------------------
'suposing that 192.168.0.0/16 was the network to grant anonymous access
'----------------------------------------------------------------------
if left(ip,7) = "192.168" then
        response.redirect "http://yoursite.tld/guys.html" 'the non NTLM
else
        response.redirect "http://yoursite.tld/index.html" 'the NTLM
end if
%>

Make the changes needed for the URLs and save it as default.asp to your site and
point your default page to it.

Regards,
jcb

Kurtis wrote:
> G'day security Gurus and others,
>
> Advice requested.
> I'm trying to set up a virtual directory under IIS 5 (on windows 2000
> server) to allow users by two methods. I understand how to do either one
> individually, but am not sure how the conbination is possible. All users are
> from public internet.
>
> Would like to allow users from two specific IPs to browse right in, and
> allow all other IPs access once they pass a standard NTLM logon.
>
> Any advice would be greatly appreciated.
>
> Thanks
>
> Kurtis
>
>