DOMAIN
Matches an exact domain. For example, DOMAIN,example.com,PROXY applies only to that domain. It does not automatically include subdomains such as www.example.com, so it is useful when you want to limit a rule to one hostname. Do not include a scheme, port, or URL path in the rule domain; those are not part of the domain name.
DOMAIN-SUFFIX
Matches a domain suffix. For example, DOMAIN-SUFFIX,example.com,PROXY covers example.com and its subdomains. Use it for a single domain family, but note that it will not automatically cover related resources on other domains. To handle a subdomain as an exception, put a more specific DOMAIN rule first.
DOMAIN-KEYWORD
Checks whether a domain contains a specified string. For example, DOMAIN-KEYWORD,ads,REJECT matches requests with that string in the domain. It does not search webpage content or the full URL, and the match may be broader than expected. Before using it to block traffic, check which domains it actually matches. Prefer a narrower condition when an exact domain will do.
GEOIP
Matches a destination based on its region in an IP geolocation database, for example, GEOIP,CN,DIRECT. It checks the IP address's assigned region, not the website's language, company location, or page content. Results depend on the destination IP and database data, so the same website may match different conditions on different networks or with different DNS results.
IP-CIDR / IP-CIDR6
Matches IPv4 and IPv6 address ranges; the prefix length after the range determines which addresses are included. The example IP-CIDR,192.0.2.0/24,DIRECT uses a documentation-only range to illustrate the syntax and should not be copied as a real traffic rule. When checking these rules, account for both IPv4 and IPv6; covering only one address family may miss actual requests.
USER-AGENT
Matches identifiable User-Agent information in a request, for traffic with the relevant request characteristics. This is not a general way to route traffic by app name, and not all encrypted requests expose information that can be matched. If a rule does not match, first check whether the client can access the relevant information instead of changing the match string alone.
FINAL
Handles requests that have not matched any earlier rules, serving as the fallback for the entire rule list. FINAL,PROXY sends remaining requests to PROXY, while FINAL,DIRECT sends them to DIRECT. FINAL usually belongs at the end of the list. Placing it before specific rules prevents those later rules from handling the requests.