<?php
/*****************************************************
*
* isProxy
* check whether client is under Proxy or not
* $_SERVER['HTTP_X_FORWARDED_FOR'] is pivotal here
* if client is under Proxy, returns true
* if client is not under Proxy, returns false
*
*****************************************************/
function isProxy(){
return (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) ? true : false;
}
?>
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn