def METHOD_NAME(self):
    if self.ip_in_white_list or self.ip_in_black_list:
        return
    count = cache.get(self.limit_key, 0)
    count += 1
    cache.set(self.limit_key, count, self.key_ttl)
    limit_count = settings.SECURITY_LOGIN_IP_LIMIT_COUNT
    if count < limit_count:
        return
    cache.set(self.block_key, True, self.key_ttl)