$proxyHeaders = array(
    'HTTP_VIA',
    'HTTP_X_FORWARDED_FOR',
    'HTTP_FORWARDED_FOR',
    'FORWARDED_FOR_IP',
    'HTTP_CLIENT_IP',
    'HTTP_FORWARDED_FOR_IP',
    'X_FORWARDED_FOR',
    'FORWARDED_FOR',
    'VIA',
    'X_FORWARDED',
    'FORWARDED',
    'CLIENT_IP',
    'HTTP_PROXY_CONNECTION',
    'HTTP_X_FORWARDED',
    'HTTP_FORWARDED',
);
$isProxy = false;
foreach($proxyHeaders as $x){
    if (isset($_SERVER[$x])) {
        $isProxy = true;
        break;
    }
}

if ($isProxy) {
    echo 'Use';
} else {
    echo 'Not use';
}