コード例 #1
0
ファイル: BlockIps.php プロジェクト: ksst/kf
 public function execute(\Koch\Event\Event $event)
 {
     $ip = \Koch\Http\HttpRequest::getRemoteAddress();
     if (in_array($ip, $this->blockedIps, true)) {
         $event->cancel();
     }
 }