public function hookCheckForBlockedHost() { if (!Cgi::getMode()) { $ipFilter = new IpFilter(); if ($ipFilter->isBlocked()) { throw new IPBlockedException("This host is blocked!"); } } }