Use the left function to check the beginning of the IP:
If Left(strIP, 5) = "210.7" then
Redirect to this page
else
Redirect to other page
End If
Mark
Naing Win <[EMAIL PROTECTED]> wrote:
Dear friends,
I can send a particular user to a particular page by fetching ip and
redirecting. Eg.
Dim strIP
strIP = Request.ServerVariables("REMOTE_ADDR")
If strIP = "210.7.69.19" Then
Response.redirect "Page1.htm"
Else
Response.redirect "Page2.htm"
End If
%>
I want to send all the users not only this IP 210.7.69.19, all the IPs
210.7.xx.xx using this network to a particular page. Is it possible for me?
Thanks
Naing
---------------------------------------------------------------------
Home : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
Post : [email protected]
Subscribe : [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links
[Non-text portions of this message have been removed]
---------------------------------------------------------------------
Home : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
Post : [email protected]
Subscribe : [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/active-server-pages/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/