You are here

public static function HttpblEvaluatorInterface::updateIpLocalStatus in http:BL 8

Update stored status of Host IP.

This is only called from the White-list challenge form, in the event the visitor fails the challenge.

When a Greylisted user fails a White-list test, they are Blacklisted (status = 1).

Also, per config option, they are banned in Core Ban_ip.

(legacy name was "_httpbl_cache_update".)

Parameters

string $ip: The IP address to white-list.

integer $status: Status to set. Defaults to 0 (white-list).

integer $offset: Time to add to \Drupal::time()->getRequestTime() to generate expiry.

Return value

|void

1 method overrides HttpblEvaluatorInterface::updateIpLocalStatus()
HttpblEvaluator::updateIpLocalStatus in src/HttpblEvaluator.php
Update stored status of Host IP.

File

src/HttpblEvaluatorInterface.php, line 151

Class

HttpblEvaluatorInterface
Provides an interface defining a HttpblEvaluate manager.

Namespace

Drupal\httpbl

Code

public static function updateIpLocalStatus($ip, $status, $offset = 0);