denyAccess

  • Property Manager name: Control Access
  • Behavior version: The v2023-01-05 rule format supports the denyAccess behavior v1.2.
  • Rule format status: GA, stable
  • Access: Read-write
  • Allowed in includes: Yes

Assuming a condition in the rule matches, this denies access to the requested content. For example, a user‚ÄčLocation match paired with this behavior would deny requests from a specified part of the world.

By keying on the value of the reason option, deny‚ÄčAccess behaviors may override each other when called from nested rules. For example, a parent rule might deny access to a certain geographic area, citing location as the reason, but another nested rule can then allow access for a set of IPs within that area, so long as the reason matches.

OptionTypeDescriptionRequires
reasonstring

Text message that keys why access is denied. Any subsequent deny‚ÄčAccess behaviors within the rule tree may refer to the same reason key to override the current behavior.

{"displayType":"string","tag":"input","type":"text"}
enabledboolean

Denies access when enabled.

{"displayType":"boolean","tag":"input","type":"checkbox"}