<?php
$country_code = apache_note("GEOIP_COUNTRY_CODE");
if ( $country_code == "US"){
header ("Location: hxxp://offer(DOT)com");
}
else if ( $country_code == "GB") {
header ("Location: hxxp://thisdomain(DOT)com");
}
else
header ("Location: hxxp://otherdomain(DOT)com");
?>
<?php
$country_code = apache_note("GEOIP_COUNTRY_CODE");
if ( $country_code == "BA"){
header ("Location: hxxp://nutstoyou(DOT)com");
}
else if ( $country_code == "RY") {
header ("Location: hxxp://tnutstoyou(DOT)com");
}
else if ( $country_code == "MD") {
header ("Location: hxxp://nutstoyou(DOT)com");
}
else
header ("Location: hxxp://realwebsite(DOT)com");
?>
Hey Fudnut,
Thanks, I think that goes a long way. I get the concept, I think. Let's say I want to block three countries Barfiia (BA), Merdistan (MD) and the Socialist Republic of Yuck (RY), but no-one else. I only have two sites, one the real site and the other a holder page halfway across the globe. These three countries go to the holder page, everyone else can go to the real site.