中文
Home › Guides › What rule sets are: Loyalsoldier, Meta-rules-dat or blackmatrix7?

What rule sets are: Loyalsoldier, Meta-rules-dat or blackmatrix7?

Explains routing rules and rule sets, how common rule sources differ, and what to watch for when using external rule sets.

ContentsWhat routing rules solveWhat a rule set isHow common sources differUsing external rule sets

What routing rules solve

A proxy client has to decide for each request: go direct, use the proxy, or block. Rules are the basis for that decision. Common conditions include domain, domain suffix, domain keyword, IP range, GeoIP country and process name.

What a rule set is

Arrange a large number of rules into one list file that the client can subscribe to by link and refresh periodically, and you have a rule set. You do not have to maintain thousands of rules by hand.

How common sources differ

Choose on three points: does the format match your client, is it still updated, and does the granularity suit you.

Using external rule sets

  1. Can the source itself be reached? Rule sets are hosted on sites like GitHub that the client must download from; enable "update through proxy" if needed.
  2. Rule order matters. Rules match in order, earlier first. Put ad blocking early and the fallback rule last.
  3. More rules is not always better. Very large rule sets increase memory use and matching time, especially on phones and routers.
  4. Vet the source. External rules decide where your traffic goes, so use sources you trust and can review.

Apps mentioned

Loyalsoldier clash-rules

Widely used Clash rule collection, grouped by domain and IP.

Any
Rules / configsOpen sourceFreeUnverified
★ 29,464 · 202611232234Details

MetaCubeX meta-rules-dat

geosite/geoip data and rule sets maintained by the Mihomo team.

Any
Rules / configsOpen sourceFreeUnverified
★ 5,701 · latestDetails

blackmatrix7 ios_rule_script

Large rule collection covering many client formats (Surge, Clash, Loon and more).

Any
Rules / configsOpen sourceFreeUnverified
★ 28,772 · —Details

ACL4SSR

Rules and config templates often used together with subscription converters.

Any
Rules / configsOpen sourceFreeUnverified
★ 6,987 · —Details

GFWList

One of the earliest domain lists; many rule sets derive from it.

Any
Rules / configsOpen sourceFreeUnverified
★ 25,743 · —Details

anti-AD

Ad-domain blocking rules offered in several formats.

Any
Rules / configsOpen sourceFreeUnverified
★ 10,989 · v4.3Details

Keep reading