rule-providers: community-maintained rule sets
Writing rules one by one does not scale — routing lists for common sites run to tens of thousands of entries. rule-providers externalizes rules into remote files, community-maintained and auto-updating, referenced from your profile:
rule-providers:
reject-ads:
type: http
behavior: domain
url: "https://example.com/rules/reject.yaml"
path: ./ruleset/reject.yaml
interval: 86400
rules:
- RULE-SET,reject-ads,REJECT
- GEOIP,CN,DIRECT
- MATCH,Proxy
Key fields
- behavior: what the set contains —
domain(bare domains),ipcidr(IP blocks),classical(full "TYPE,matcher" lines); - interval: refresh period in seconds — 86400 is daily;
- path: local cache; if a download fails the cached copy keeps rules alive.
Popular community sets cover ad blocking, domestic domains, streaming services and Telegram IP ranges. Note that RULE-SET is a Premium-core feature — the core bundled with Clash for Windows is Premium, so it just works. Combined with Mixin, rule sets let you build a fully custom routing scheme without touching the subscription.