public function ipNotAllowed()
    {
        //If the user's IP address is not banned
        if (!$this->request->isBanned()) {
            return $this->redirect($this->referer(['_name' => 'homepage'], true));
        }

        $this->viewBuilder()->setLayout('login');
    }