evora@alentejo:~# ifconfig eth0
evora@alentejo:~# ifconfig eth0
eth0 Link encap:Ethernet HWaddr FF:FF:FF:FF:FF:FF
inet addr: 18.97.14.83
inet host: 18-97-14-83.crawl.commoncrawl.org
$referer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';
$domain= $_SERVER['REMOTE_ADDR'];
$visitor=geoip_record_by_name($domain);
$city=$visitor["city"];
$country=$visitor["country_name"];
$country_code=$visitor["country_code"];
$resultado = "inet from: $city $country ($country_code)\n";
echo $resultado
?>
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0 MiB) TX bytes:0 (0 MiB)
Interrupt:0
evora@alentejo:~# _