<?
$route = $_SERVER['HTTP_X_FORWARDED_FOR'];
$ip = split(', ', $route);
$ip = (empty($route))? $_SERVER['REMOTE_ADDR']: $ip[0];
header("Pragma: no-cache");
header("Cache-Control: no-cache, must-revalidate");
echo "<style type=\"text/css\">*{font:12px Verdana;line-height:20px}</style>";
echo "Your IP Address: <br>";
if(!empty($route)){
echo "$ip (by HTTP_X_FORWARDED_FOR) <br> Route: <br> $route";
}else{
echo "$ip (by REMOTE_ADDR)";
}
?>
沒有留言:
張貼留言