LockedBackendGuard implements MiddlewareInterface
Checks various security options for accessing the TYPO3 backend before proceeding
Depends on the NormalizedParams middleware to identify the Site URL and if the page is not running via HTTPS yet.
Table of Contents
Interfaces
- MiddlewareInterface
Properties
Methods
- __construct() : mixed
- process() : ResponseInterface
- Checks the client's IP address and the availability of LOCK_BACKEND file, location may vary, @see BackendLocker->isLocked().
- checkLockedBackend() : string|null
- Check adminOnly configuration variable and redirects to an URL in file LOCK_BACKEND. Location may vary, @see BackendLocker->isLocked().
- validateVisitorsIpAgainstIpMaskList() : void
- Compare client IP with IPmaskList and throw an exception
Properties
$lockService read-only
protected
BackendLocker
$lockService
Methods
__construct()
public
__construct(BackendLocker $lockService) : mixed
Parameters
- $lockService : BackendLocker
process()
Checks the client's IP address and the availability of LOCK_BACKEND file, location may vary, @see BackendLocker->isLocked().
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface
Return values
ResponseInterfacecheckLockedBackend()
Check adminOnly configuration variable and redirects to an URL in file LOCK_BACKEND. Location may vary, @see BackendLocker->isLocked().
protected
checkLockedBackend() : string|null
Tags
Return values
string|nullvalidateVisitorsIpAgainstIpMaskList()
Compare client IP with IPmaskList and throw an exception
protected
validateVisitorsIpAgainstIpMaskList(string $ipAddress[, string $ipMaskList = '' ]) : void
Parameters
- $ipAddress : string
- $ipMaskList : string = ''