diff --git a/includes/Api.class.php b/includes/Api.class.php index 8940e9f..543e777 100644 --- a/includes/Api.class.php +++ b/includes/Api.class.php @@ -172,11 +172,11 @@ public function getData() /** * Блокирует айпи, если его нет в белых списках и других правилах исключения */ - private function BlockIP($client_ip, $message) + public function BlockIP($client_ip, $message) { if ( !($this->WAFSystem->WhiteListIP->isListed($client_ip) - || ($this->WAFSystem->IndexBot->enabled && $this->WAFSystem->IndexBot->isIndexbot($client_ip)) + || ($this->WAFSystem->IndexBot->enabled && $this->WAFSystem->IndexBot->Checking($client_ip)) ) ) { $this->WAFSystem->BlackListIP->add($this->WAFSystem->Profile->IP, $message);