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

Public Member Functions

 process (ServerRequestInterface $request, RequestHandlerInterface $handler)
 

Protected Member Functions

 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 40 of file LockedBackendGuard.php.

Member Function Documentation

◆ checkLockedBackend()

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

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

Exceptions
BackendLockedException

Definition at line 79 of file LockedBackendGuard.php.

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

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

◆ process()

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

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

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

Exceptions

Definition at line 110 of file LockedBackendGuard.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\cmpIP(), and TYPO3\CMS\Core\Utility\HttpUtility\HTTP_STATUS_403.

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