setHosts
\Bitrix\Security\HostRestriction public \Bitrix\Security\HostRestriction::setHosts( string $hosts, boolean $ignoreChecking = false );
Non-static method saves permitted hosts.
Параметры
Parameter | Description | Version |
---|---|---|
$hosts | Permitted hosts (masks are supported, for example *.example.com). | |
$ignoreChecking | When set as false , denies host verification. |
Exceptions
- ArgumentTypeException (
Bitrix\Main\ArgumentTypeException
) - LogicException (
\Bitrix\Security\LogicException
)
Example
© «Bitrix24», 2001-2024