remote_ip based "reditect", urgent work pending ? plz help


hi all,

i'm trying to do a redirect script that will send every body with ip address of
193.188.whatever*.whatever* to a page called "193.htm"

Ps. my visitors are behind a firewall,
that's why i perefer to use remote_addr in stead of remore_host ?

thank you all .


merciAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
jhurstConnect With a Mentor Commented:
#!/usr/bin/perl

if ($ENV{REMOTE_ADDR} =~ /^193\.198\./) #the specific host
  {print "Location: http://www.wherevere.com/193.htm\n\n";
  exit;
  }

print <<EOT;
Content-type: text/html

....
....

0
All Courses

From novice to tech pro — start learning today.