$ext = array( 'is'=>'Iceland', 'nl'=>'Netherlands', 'no'=>'Norway', 'dk'=>'Denmark', 'org'=>'Foolands' ); // Add more to this array.
$host = gethostbyaddr( $_SERVER['REMOTE_ADDR'] );
$ext_len = explode( '.', $host );
$ext_len = array_reverse( $ext_len );
if( isset( $ext[$ext_len[0]] ) )
echo $ext[$ext_len[0]];
else
echo 'Dont know which country you are from.';