public function execute(\Koch\Event\Event $event) { $ip = \Koch\Http\HttpRequest::getRemoteAddress(); if (in_array($ip, $this->blockedIps, true)) { $event->cancel(); } }