At the top of Settings → Routing is the region, and below it the rule list. Pick a region and Hiddify adds a set of built-in rules; below them you can add your own, down to a single domain, app or port.
Built-in rules
| Built-in rule | What it does |
|---|---|
| Bypass LAN | Router, NAS, printer and other local addresses go direct |
| Apple / Microsoft / Android services | System updates and push go direct, saving traffic and staying stable |
| Linux updates | Linux package mirrors go direct |
| Ads and malware | Blocked by list |
| Sites in (your region) | Local sites go direct, such as Chinese sites when China is selected |
Built-in rules cannot be changed directly; the screen says to duplicate and edit the copy. Tap Duplicate rule, change the copy, and switch the original off if needed.

Adding your own rule
Tap Add rule, give it a name, then pick Outbound if match:
- Proxy: through the server you selected.
- Direct: without the proxy.
- Direct with fragment: without the proxy, but the TLS handshake is split before sending, for sites blocked by name whose IP is not blocked. See this article.
- Block: cut off.
Then fill in the conditions. There are many; the common ones are:
| Field | What to enter | Example |
|---|---|---|
| Domain | Full domain, matches only itself | dl.google.com |
| Domain suffix | A suffix, matches subdomains too | example.com, .ir |
| Domain keyword | A piece of text in the domain | google |
| Destination IP CIDR | An IP or range | 10.0.0.0/8, fd00::/8 |
| Destination ports | A port or range | 80, 1:65000 |
| Process names (computers) | Program file name | chrome.exe |
| Package names (Android) | App package name | org.telegram.messenger |
| URLset (rule set) | A remote rule list | https://…/xxx.srs |
Process and package conditions work only in VPN mode, and the screen marks them “Available only in TUN mode”. For a batch of domains, sort them first with the rule sorter and then paste.
How conditions combine
Within one rule, domains, suffixes, keywords and IPs match if any one matches; ports, network (TCP/UDP), protocol and similar conditions must match together with the address. So “example.com + port 443” matches only port 443 on example.com. For an “or”, split it into two rules.
- Top to bottom, one by oneThe first matching rule wins; later ones are not checked
- Nothing matchesDefault outbound: proxy
- Direct trafficSkips the proxy; DNS uses the outbound resolver
Import, export and reset
The rule list menu has Copy rules to clipboard and Save rules to file, and can import from the clipboard or a file, which makes it easy to sync between phone and computer. If you make a mess, use Reset to default rules.
A rule does nothing?
First check whether you are in system proxy mode: programs that ignore the system proxy never reach Hiddify. Then check the order, in case a broader rule above matches first.
Where are “balancer strategy” and “default proxy”?
Also lower on the routing page. They decide what is used before you pick a server and how connections are spread over several servers; see this article.
Read nextDNS: who looks up the names