protected function addAttempt()
    {
        $ip = $this->getIp();
        $attempt_expiredate = date("Y-m-d H:i:s", strtotime($this->config->attack_mitigation_time));

        $query = "INSERT INTO {$this->config->table_attempts} (ip, expiredate) VALUES (:ip, :expiredate)";
        $query_prepared = $this->dbh->prepare($query); // INET_ATON(:ip)
        return $query_prepared->execute([
            'ip'         => $ip,
            'expiredate' => $attempt_expiredate
        ]);
    }