<?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; } ?>
- 本文固定链接: https://zxbcw.cn/post/4218/
- 转载请注明:必须在正文中标注并保留原文链接
- QQ群: PHP高手阵营官方总群(344148542)
- QQ群: Yii2.0开发(304864863)