View Single Post
Old 11-21-2017, 03:01 PM  
faperoni
Confirmed User
 
faperoni's Avatar
 
Industry Role:
Join Date: Feb 2015
Location: Amsterdam
Posts: 165
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
}
__________________
Faperoni
faperoni is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote