Best would be a php page that is included on all your pages. I see you use wordpress (from your sig) you could add that code to the wp_config.php file. Make a backup first.
So enable the cloudflare "IP Geolocation" setting and then add the code below anywhere between the <?php here ?> tags
$country_code = $_SERVER["HTTP_CF_IPCOUNTRY"];
if($country_code == 'KW'){
exit; //or redirect or whatever
}
|