Documentation

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

ParameterDescriptionVersion
$propertiesSettings.

Exceptions

Example



© «Bitrix24», 2001-2024
Up