Documentation

setHosts

\Bitrix\Security\HostRestriction public
\Bitrix\Security\HostRestriction::setHosts(
 string $hosts,
 boolean $ignoreChecking = false
);

Non-static method saves permitted hosts.

Параметры

ParameterDescriptionVersion
$hostsPermitted hosts (masks are supported, for example *.example.com).
$ignoreCheckingWhen set as false, denies host verification.

Exceptions

Example



© «Bitrix24», 2001-2024