|
<br> 能够检测大部分通过代理服务器访问的ip. <BR><BR><TABLE cellSpacing=0 cellPadding=0 width="85%"><TBODY><TR><TD style="BORDER-RIGHT: rgb(0,0,0) 1px groove; BORDER-TOP: rgb(0,0,0) 1px groove; BORDER-LEFT: rgb(0,0,0) 1px groove; BORDER-BOTTOM: rgb(0,0,0) 1px groove" bgColor=#eeeeee><?php <BR>//beiji.com 2000.6.17 <BR>$ip = getenv("REMOTE_ADDR"); <BR>$v = getenv("HTTP_VIA"); <BR>$f = getenv("HTTP_X_FORWARDED_FOR"); <BR>$c = getenv("HTTP_XROXY_CONNECTION"); <BR>$o = getenv("HTTP_PRAGMA"); <BR><BR>print '<br>REMOTE_ADDR'; <BR>print $ip; <BR><BR>if (($v=="")&&($f=="")&&($c=="")&&($o=="")){ <BR>print "<br>not through proxy"; <BR>} <BR>else { <BR>print "<br>through proxy"; <BR>print '<br>http_via: ';print $v; <BR>print '<br>http_x_forwarded_for: ';print $f; <BR>print '<br>http_xroxy_connection: ';print $c; <BR>print '<br>http_pragma: ';print $o; <BR>} <BR>?> </TD></TR></TBODY></TABLE><br><br> |
|