J
Jez
I'm trying to work this out..
But I'm a little stuck...
<%
'declare variables
Dim sIP1
Dim sIP2
Dim sIP3
'assign our APPROVED IP addresses (all extrenal addresses)
sIP1 = "xxx.xxx.xxx.xxx"
sIP2 = "xxx.xxx.xxx.xxx"
sIP3 = "xxx.xxx.xxx.xxx"
'retrieve the visitors IP address
sIP = Request.ServerVariables("REMOTE_ADDR")
'check if IP address matches any of the approved IPs
response.write sIP
If sIP <> sIP1 OR sIP <> sIP2 OR sIP <> sIP3 Then
Response.Redirect "http://www.google.com"
else
response.write "HELLO & WELCOME"
End If
%>
How do I do the IF statement ?? if sIP is anything other that sIP1 or
sIP2 or sIP3 then ???
Thanks
But I'm a little stuck...
<%
'declare variables
Dim sIP1
Dim sIP2
Dim sIP3
'assign our APPROVED IP addresses (all extrenal addresses)
sIP1 = "xxx.xxx.xxx.xxx"
sIP2 = "xxx.xxx.xxx.xxx"
sIP3 = "xxx.xxx.xxx.xxx"
'retrieve the visitors IP address
sIP = Request.ServerVariables("REMOTE_ADDR")
'check if IP address matches any of the approved IPs
response.write sIP
If sIP <> sIP1 OR sIP <> sIP2 OR sIP <> sIP3 Then
Response.Redirect "http://www.google.com"
else
response.write "HELLO & WELCOME"
End If
%>
How do I do the IF statement ?? if sIP is anything other that sIP1 or
sIP2 or sIP3 then ???
Thanks