Onu şöyle yapman gerekiyor, aslında .htaccess ile banlamak daha mantıklı ama o uzun iş, en kısası böyle, ekteki dosyayı da bu kodları koyacağın dosya ile aynı dizine at, sonra çalıştır, Türkler bu-sayfa-turkler-icin.html adlı sayfaya gideceklerdir,

 <?
$IPaddress=$REMOTE_ADDR;
$two_letter_country_code=iptocountry($IPaddress);

if ($two_letter_country_code=="TR"){
     include("bu-sayfa-turkler-icin.html");
      die();
    }else{
     include("bu-sayfa-diger-ulkelerden-insanlar-icin.html");
      die();
    }

function iptocountry($ip) {   
    $numbers = preg_split( "/\./", $ip);   
    include("ipadresleri.php");
    $code=($numbers[0] * 16777216) + ($numbers[1] * 65536) + ($numbers[2] * 256) + ($numbers[3]);   
    foreach($ranges as $key => $value){
        if($key<=$code){
            if($ranges[$key][0]>=$code){$two_letter_country_code=$ranges[$key][1];break;}
            }
    }
    if ($two_letter_country_code==""){$two_letter_country_code="unkown";}
    return $two_letter_country_code;
}
?>
not: kodları ben yazmadım onu belirteyim, önceden bulmuştum.