Example #1
0
File: BlockIps.php Project: ksst/kf
 public function execute(\Koch\Event\Event $event)
 {
     $ip = \Koch\Http\HttpRequest::getRemoteAddress();
     if (in_array($ip, $this->blockedIps, true)) {
         $event->cancel();
     }
 }