Пример #1
0
 private function checkFrontEndHTTPHeader()
 {
     $isFastly = checkFastlyProxy();
     return $isFastly;
 }
Пример #2
0
 /**
  * A callback check if the request is behind fastly, and if so, look for
  * the XFF header.
  */
 public static function checkFastlyProxy($ip, &$trusted)
 {
     if (!$trusted) {
         $trusted = checkFastlyProxy();
     }
     return true;
 }