Honeypot
in package
implements
FilterInterface
Honeypot filter
Tags
Table of Contents
Interfaces
- FilterInterface
- Filter interface
Methods
- after() : ResponseInterface|void
- Attach a honeypot to the current response.
- before() : RequestInterface|ResponseInterface|string|void
- Checks if Honeypot field is empty, if not then the requester is a bot
Methods
after()
Attach a honeypot to the current response.
public
after(RequestInterface $request, ResponseInterface $response[, array<int, string>|null $arguments = null ]) : ResponseInterface|void
Parameters
- $request : RequestInterface
- $response : ResponseInterface
- $arguments : array<int, string>|null = null
Return values
ResponseInterface|voidbefore()
Checks if Honeypot field is empty, if not then the requester is a bot
public
before(RequestInterface $request[, array<int, string>|null $arguments = null ]) : RequestInterface|ResponseInterface|string|void
Parameters
- $request : RequestInterface
- $arguments : array<int, string>|null = null