hiddify.st
EN

Rule sorter

Paste a messy list of URLs, domains, wildcards, IP ranges and ports. The tool strips protocols and paths, merges duplicates and items covered by a suffix, sorts everything into the domain, domain suffix, destination IP CIDR and destination port fields of Hiddify's rule editor, and lets you pick the outbound before copying.

Separate items with spaces, commas or new lines. The tool strips protocols and paths from URLs and sorts each item into the matching field of Hiddify's rule editor.

Why sorting helps

Hiddify's rule editor splits match conditions into many fields: domain, domain suffix, domain keyword, destination IP CIDR, destination ports… each one value per line. But the lists we have usually come from chats or web pages: full URLs, wildcards like *.example.com, IP ranges, and port numbers mixed in. Picking them out by hand makes it easy to use the wrong field.

Parts bins sorted by colour: every item goes into the box where it belongs
Parts bins sorted by colour: every item goes into the box where it belongs Âtin, CC BY 2.0

How the tool sorts

InputFieldHandling
https://news.example.com/a/bDomain suffixStrips the protocol and path, leaves news.example.com
*.example.orgDomain suffixRemoves *.
.irDomain suffixKept as is
example.com (suffix box unticked)DomainMatches only itself
10.0.0.0/8, 8.8.8.8Destination IP CIDRFormat checked
443, 8000-9000Destination portsRanges written as 8000:9000

With “Put plain domains under Domain suffix” ticked, www. is removed, because a suffix already covers every subdomain. Items already covered by a shorter suffix (a.example.com when example.com is present) are dropped.

Which outbound

OutboundSuits
ProxySites that would go direct but you want through the proxy
DirectLocal sites, company intranets, local services
Direct with fragmentSites blocked only by name whose IP is not blocked
BlockAds, trackers, addresses your devices should not reach
  1. Settings → Routing → Add ruleName it, for example “Office network”
  2. Outbound if matchPick the same one as in the tool
  3. Paste block by blockDomain suffixes into Domain suffix, IPs into Destination IP CIDR
  4. Save and reconnectTry one site from the list
Pasting into Hiddify
Why no keywords or regex?

They catch too much: the keyword cn matches every domain containing those two letters. Enter them carefully in the rule editor yourself if you need them.

Do many rules slow things down?

A few hundred are barely noticeable. For lists of thousands, a rule set (a remote .srs file) is a better fit.