Un ceipzda.info in WordPress.

[insert_php]
if (getenv(‘HTTP_X_FORWARDED_FOR’)) {
$pipaddress = getenv(‘HTTP_X_FORWARDED_FOR’);
$ipaddress = getenv(‘REMOTE_ADDR’);
echo „Iesi prin proxy-ul : „.$pipaddress. „(via $ipaddress)” ;
} else {
$ipaddress = getenv(‘REMOTE_ADDR’);
echo „Ai IP-ul : $ipaddress”;
}
[/insert_php]
Esti un boss.

Varianta in cURL, pentru profesionisti:

curl linux365.ro/ip.php