Documentation

HostRestriction

HostRestriction class that implements verification and limits for hosts/domains.

Class Description Available from version
getValidationRegExp Returns regular expressions (based on domain names) to be checked.
isValidHost Checks domain name against domain name limits policy.
onPageStart Event handler for system event OnPageStart.
process Main method that verifies current host, logs and executes actions.
save Saves all properties, enables automatic verification and clears cache, if required.
setAction Defines actions, executed during the verification.
setActive Activates or deactivates automatic check.
setHosts Saves permitted hosts.
setLogging Activates or deactivates logging for denied host queries.
setProperties Defines various settings for domain name verification.


© «Bitrix24», 2001-2024
Up