Match condition → Policy
Rule Keywords & Policies
Rules are usually checked from top to bottom, and the policy for a matching rule is applied. Keywords such as DOMAIN-SUFFIX specify what to match; PROXY, DIRECT, and REJECT specify what to do. They are not interchangeable.
Three parts of a rule
DOMAIN-SUFFIX,example.com,PROXY
DOMAIN-SUFFIX is the type, example.com is the match value, and PROXY is the policy. This example illustrates the syntax; it is not a recommendation to add the rule to your configuration.
DOMAIN
DOMAIN matches the exact domain specified, such as example.com. It does not automatically include www.example.com. Use it when you need to handle a single hostname. If a service uses multiple subdomains, list them separately or consider another match type after confirming its scope.
DOMAIN-SUFFIX
DOMAIN-SUFFIX matches the specified domain and its subdomains, such as example.com and api.example.com. It recognizes domain boundaries rather than searching for arbitrary text. Use it to apply one policy to a domain and its subdomains, but check whether an earlier rule already matches the request.
DOMAIN-KEYWORD
DOMAIN-KEYWORD matches domains that contain a specified keyword, so its scope is usually broader than a suffix match. A short keyword may match unrelated domains. Check the impact before adding one, and avoid using a short fragment in place of a clearly defined domain.
GEOIP
GEOIP matches a destination IP based on the country or region recorded in an IP geolocation database; it does not identify the user's location or a website's language. Database results may not match the region associated with a website's brand, and a CDN may return different addresses. Check the actual resolution results to understand a match.
IP-CIDR
IP-CIDR matches an IPv4 address range using CIDR notation, such as 192.0.2.0/24. The number after the slash is the network prefix length, not a port. A longer prefix usually covers a smaller range; before changing it, confirm that the target address belongs to that range.
IP-CIDR6
IP-CIDR6 matches an IPv6 address range, such as 2001:db8::/32. IPv6 ranges are handled separately from IPv4 ranges. A domain may resolve to both types of address; adding only an IPv4 rule does not give IPv6 connections the same policy. Check the address used by the connection.
FINAL
FINAL sets the final policy for requests that did not match earlier rules and is usually placed at the end of the rule list. It takes no domain or address match value, for example, FINAL,DIRECT. Placing it before specific rules may prevent those rules from matching as intended.
PROXY
PROXY is a rule policy that sends matching requests through the proxy path. It is not a server address or protocol name. The actual egress route depends on the current selection and configuration; entering PROXY does not create server details.
DIRECT
DIRECT is a rule policy that sends matching connections without routing them through a proxy server. It does not disable all network handling or guarantee that a destination is reachable. DNS resolution, system network status, and the destination service can still affect the result.
REJECT
REJECT blocks matching connections; it does not precisely remove an element from a page. If a domain hosts different types of content, rejecting the domain may also affect normal features. After applying the policy, check actual requests. Rejecting connections is not the same as filtering content.