You are here

public function HttpblEvaluatorInterface::evaluateVisitor in http:BL 8

Manages remote and local lookups on visiting host IPs, evaluates their remote status as safe or suspicious and determines a locally stored status (safe / white-listed, grey-listed, or blacklisted) which is used (by other functions) to determine an appropriate, subsequent response to a request.

Parameters

string $ip: The IP address being evaluated.

object $request: The request object being evaluated.

Return value

array Contains a string ('evaluated') indicating whether or not the evaluation was completed and integer (0, 1 or 2) representing the scored status of the evaluated IP.

1 method overrides HttpblEvaluatorInterface::evaluateVisitor()
HttpblEvaluator::evaluateVisitor in src/HttpblEvaluator.php
Manages remote and local lookups on visiting host IPs, evaluates their remote status as safe or suspicious and determines a locally stored status (safe / white-listed, grey-listed, or blacklisted) which is used (by other functions) to determine an…

File

src/HttpblEvaluatorInterface.php, line 37

Class

HttpblEvaluatorInterface
Provides an interface defining a HttpblEvaluate manager.

Namespace

Drupal\httpbl

Code

public function evaluateVisitor($ip, $request, $project_supported);