‪TYPO3CMS  9.5
TYPO3\CMS\Backend\Middleware\LockedBackendGuard Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Middleware\LockedBackendGuard:

Public Member Functions

ResponseInterface process (ServerRequestInterface $request, RequestHandlerInterface $handler)
 

Protected Member Functions

string null checkLockedBackend ()
 
 validateVisitorsIpAgainstIpMaskList (string $ipAddress, string $ipMaskList='')
 

Detailed Description

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.

Definition at line 36 of file LockedBackendGuard.php.

Member Function Documentation

◆ checkLockedBackend()

string null TYPO3\CMS\Backend\Middleware\LockedBackendGuard::checkLockedBackend ( )
protected

Check adminOnly configuration variable and redirects to an URL in file typo3conf/LOCK_BACKEND

Returns
‪string|null
Exceptions
BackendLockedException

Definition at line 80 of file LockedBackendGuard.php.

References $GLOBALS, and TYPO3\CMS\Core\Core\Environment\getLegacyConfigPath().

Referenced by TYPO3\CMS\Backend\Middleware\LockedBackendGuard\process().

◆ process()

ResponseInterface TYPO3\CMS\Backend\Middleware\LockedBackendGuard::process ( ServerRequestInterface  $request,
RequestHandlerInterface  $handler 
)

Checks the client's IP address and if typo3conf/LOCK_BACKEND is available

Parameters
ServerRequestInterface$request
RequestHandlerInterface$handler
Returns
‪ResponseInterface

Definition at line 45 of file LockedBackendGuard.php.

References $GLOBALS, TYPO3\CMS\Backend\Middleware\LockedBackendGuard\checkLockedBackend(), and TYPO3\CMS\Backend\Middleware\LockedBackendGuard\validateVisitorsIpAgainstIpMaskList().

◆ validateVisitorsIpAgainstIpMaskList()

TYPO3\CMS\Backend\Middleware\LockedBackendGuard::validateVisitorsIpAgainstIpMaskList ( string  $ipAddress,
string  $ipMaskList = '' 
)
protected

Compare client IP with IPmaskList and throw an exception

Parameters
string$ipAddress
string$ipMaskList
Exceptions

Definition at line 101 of file LockedBackendGuard.php.

Referenced by TYPO3\CMS\Backend\Middleware\LockedBackendGuard\process().