if IPADDRESS <> "xxx.xxx.xxx.xxx" AND IPADDRESS <> "yyy.yyy.yyy.yyy"
AND
IPADDRESS "aaa.aaa.aaa.aaa" then response.redirect "notallowed.html"
Use "AND" instead of "OR"
> IPADDRESS = Request.ServerVariables("remote_addr")
> response.write IPADDRESS
[quoted text clipped - 10 lines]
>
> but that fails !!
Fails In what way. I take it the missing <> in the third clause is simply a
typo?
Had you considered simply using the IIS manager and adding the IP address
restrictions to the file in the properties dialog?

Signature
Anthony Jones - MVP ASP/ASP.NET
Evertjan. - 07 Sep 2008 20:52 GMT
Anthony Jones wrote on 07 sep 2008 in
microsoft.public.inetserver.asp.general:
> .
>> IPADDRESS = Request.ServerVariables("remote_addr")
[quoted text clipped - 18 lines]
> Had you considered simply using the IIS manager and adding the IP
> address restrictions to the file in the properties dialog?
IPADDRESS <> "a" OR IPADDRESS <> "b"
This is always true,
as IPADDRESS cannot be two different things/strings at the same time.
Try AND.

Signature
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)