Domain-based Rule

There are 6 domain-based rule types: DOMAIN, DOMAIN-SUFFIX, DOMAIN-KEYWORD, DOMAIN-WILDCARD, DOMAIN-REGEX, and DOMAIN-SET.

DOMAIN

DOMAIN,www.apple.com,Proxy

Rule matches if the domain of request matches exactly.


DOMAIN-SUFFIX

DOMAIN-SUFFIX,apple.com,Proxy

Rule matches if the domain of the request matches the suffix. For example: 'google.com' matches 'www.google.com', 'mail.google.com' and 'google.com', but doesnotmatch 'content-google.com'.


DOMAIN-KEYWORD

DOMAIN-KEYWORD,google,Proxy

Rule matches if the domain of the request contains the keyword.


DOMAIN-WILDCARD

DOMAIN-WILDCARD,*.apple.com,Proxy

Rule matches if the domain of the request matches the wildcard pattern. * matches any sequence of non-dot characters. For example: *.apple.com matches www.apple.com but does not match apple.com or test.www.apple.com.


DOMAIN-REGEX

DOMAIN-REGEX,^mail\..+\.com$,Proxy

Rule matches if the domain of the request matches the regular expression.


DOMAIN-SET

DOMAIN-SET,my-set,DIRECT

Rule matches if the domain is found in the named domain set. Domain sets are defined using DOMAIN-SET declaration in the rule section, referencing an external file or URL that contains a list of domain rules (one per line, without policy).

S. Smart Rabbit LLC © All Rights Reserved            updated 2026-05-18 07:10:34

results matching ""

    No results matching ""