public function HttpblResponse::challengeFailurePurgatory in http:BL 8
Build a response to a white-list challenge failure.
Simpler response because we cannot blacklist them if not configed for storage. The visitor will be continually challenged on each visit, until a success occurs for session based white-listed.
Return value
object $failureResponse A PRECONDITION FAILED (412) response.
Overrides HttpblResponseInterface::challengeFailurePurgatory
File
- src/
HttpblResponse.php, line 128
Class
- HttpblResponse
- HttpblResponse builds the final response to request.
Namespace
Drupal\httpblCode
public function challengeFailurePurgatory() {
$honeypot = t(self::buildHoneypot());
$message = new FormattableMarkup('<h1 class=httpbl>412 HTTP_PRECONDITION_FAILED</h1>Failed white-list request challenge. Good-bye!@honeypot', [
'@honeypot' => $honeypot,
]);
$failureResponse = new SymfonyResponse($message, 412);
return $failureResponse;
}