Example #1
0
 /**
  * Match ips
  *
  * @param array $ips array data of access
  * @return bool
  */
 protected function matchIps(array $ips)
 {
     // all ips
     if (in_array('*', $ips)) {
         return true;
     }
     $result = $this->request->isIps($ips);
     if (!$result && $this->sendHeaders && $this->response instanceof \rock\response\Response) {
         $this->response->status403();
     }
     return $result;
 }