Mark: you should use 6 rather than 5 so that it would include the period.
Otherwise you are accepting all IPs that have the second part starting with
"7" rather than all IPs with a second part that is "7"

 

John. Visio MVP

 

  _____  

From: Mark E [mailto:[EMAIL PROTECTED] 
Sent: March 20, 2005 9:42 AM
To: [email protected]
Subject: Re: [ASP] Trouble connecting to SQL

 

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 Sponsor



ADVERTISEMENT
 
<http://us.ard.yahoo.com/SIG=1291lop77/M=298184.6191685.7192823.3001176/D=gr
oups/S=1705115381:HM/EXP=1111416111/A=2593423/R=0/SIG=11el9gslf/*http:/www.n
etflix.com/Default?mqso=60190075> click here


 
<http://us.adserver.yahoo.com/l?M=298184.6191685.7192823.3001176/D=groups/S=
:HM/A=2593423/rand=242675382> 

 

  _____  

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]
<mailto:[EMAIL PROTECTED]>

  
*       Your use of Yahoo! Groups is subject to the Yahoo!
<http://docs.yahoo.com/info/terms/>  Terms of Service. 



[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/
 



Reply via email to