Answers
/**
* 是否使用了代理?
*
* @return boolean
*/
function is_use_proxy()
{
$via = getenv("HTTP_VIA");
$forwarded_for = getenv("HTTP_X_FORWARDED_FOR");
$xroxy_connection = getenv("HTTP_XROXY_CONNECTION");
$pragma = getenv("HTTP_PRAGMA");
return ($via == "")
&& ($forwarded_for == "")
&& ($xroxy_connection == "")
&& ($pragma == "");
}
秀吉我的菜
answered 10 years, 2 months ago