mod_geoip erklärt sich anhand der Dokumentation, anschließend hat man die in der Dokumentation erwähnten zusätzlichen $_SERVER-Variablen.
Desweiteren:
Code:
$not_allowed = false;
if( isset($_SERVER['GEOIP_COUNTRY_CODE']) )
{
  $allowed_countries = array('DE', 'AT', 'CH', 'EU');
 $not_allowed = (!in_array(strtoupper($_SERVER['GEOIP_COUNTRY_CODE']), $allowed_countries));
...
}
else{
// whoopsie 
}
geht auch mit PHP