Hi, am trying to show a different webpage by using their hostname as a value to determine what webpage show this is my example now:
<?php
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
if (eregi("ameritech.net", $hostname)) {
// shows the special webpage for ameritech.net users
echo "u r special";
die;
}
// shows the webpage for any other user
echo "normal web";
?>
My question is, what if i want to show the "special webpage" to more than one hostname let's say that i want to show it to hostnames containing: ameritech.net, aol.com, msn.com, etc.com ???
Do i have to do the same process over and over ?? thanks.