if ($ip = @$_SERVER['HTTP_X_FORWARDED_FOR']) {
if ($proxy = @$_SERVER['HTTP_CLIENT_IP']);
else $proxy = $_SERVER['REMOTE_ADDR'];
else
if ($ip = @$_SERVER['HTTP_CLIENT_IP']);
else $ip = $_SERVER['REMOTE_ADDR'];
echo "Your IP $ip<br>\n";
if (@$proxy) echo "Your proxy IP is $proxy<br>\n";