setProperties
\Bitrix\Security\HostRestriction public \Bitrix\Security\HostRestriction::setProperties( array $properties );
Non-static method defines various settings for domain name verification. Presently, the following is supported :
- hosts
: string with permitted domain names (masks are supported, for example: *.example.com);
- action
: string with actions for restricted domain names;
- action_options
: array with action settings;
- logging
: bool
, when set as true
, a restricted host log entry is required;
- active
: bool
, when set as true
, each query requires verification.
Parameters
Parameter | Description | Version |
---|---|---|
$properties | Settings. |
Exceptions
- ArgumentTypeException (
Bitrix\Main\ArgumentTypeException
) - ArgumentNullException (
Bitrix\Main\ArgumentNullException
) - ArgumentOutOfRangeException (
Bitrix\Main\ArgumentOutOfRangeException
) - LogicException (
\Bitrix\Security\LogicException
)
Example
© «Bitrix24», 2001-2024