shinlithium
Programmer
whats up everyone im new here.
and i have a question=)
my question is, i run a web server, and what i want to accomplish is when a user enters my site, i want the script to find there ip and open a new browser window and send them to a particular site, depending on what there last number of there ip is. (i.e if ur ip ends with a 1 then u will be sent to site A, and if it ends with a 2 it will send you to site b, etc etc) so far i can find the ip by using this script
sIPfull = curUser.IP()
sIPc = Left(sIPfull, InStrRev(sIPfull, "." - 1)
sIPb = Left(sIPc, InStrRev(sIPc, "." - 1)
sIPa = Left(sIPb, InStrRev(sIPb, "." - 1)
sIPa = sIPa & ".*"
sIPb = sIPb & ".*"
sIPc = sIPc & ".*"
so a little help would be apprecitated! thanks!
and i have a question=)
my question is, i run a web server, and what i want to accomplish is when a user enters my site, i want the script to find there ip and open a new browser window and send them to a particular site, depending on what there last number of there ip is. (i.e if ur ip ends with a 1 then u will be sent to site A, and if it ends with a 2 it will send you to site b, etc etc) so far i can find the ip by using this script
sIPfull = curUser.IP()
sIPc = Left(sIPfull, InStrRev(sIPfull, "." - 1)
sIPb = Left(sIPc, InStrRev(sIPc, "." - 1)
sIPa = Left(sIPb, InStrRev(sIPb, "." - 1)
sIPa = sIPa & ".*"
sIPb = sIPb & ".*"
sIPc = sIPc & ".*"
so a little help would be apprecitated! thanks!