Rule sets for Anywhere, converted from public rule sources into importable .arrs and .amrs files.
Anywhere is a native proxy client built entirely with Swift. It has no Electron, no WebView, and is not a sing-box wrapper. It implements protocols directly from the lower layers, supports vless, trojan, hysteria, shadowsocks, http, and other mainstream protocols, and focuses on stability and performance.
rules/common/- curated routing rule sets for daily use.rules/all/- full converted routing rule sets from blackmatrix7. Large rule sets are split into 100,000-rule chunks for Anywhere imports.mitm/- experimental MITM rule sets and related reject rule sets.
Click an import link to open a small HTTPS redirect page, which then launches Anywhere with an anywhere://add-rule-set deep link.
https://chikacya.github.io/anywhere-rules/import.html?link=https%3A%2F%2Fraw.githubusercontent.com%2Fchikacya%2Fanywhere-rules%2Fmain%2Frules%2Fcommon%2FAI.arrs
Some rule sets include a routing header, so Anywhere can assign their initial target automatically on import. Other rule sets stay at Default until you choose DIRECT, REJECT, or a proxy policy.
GitHub README pages do not keep custom anywhere:// links clickable, so the table below uses https://chikacya.github.io/anywhere-rules/import.html as the clickable entry point.
MITM rules are experimental and are provided for learning and research only.
Import .amrs files into Anywhere MITM rule sets. Some MITM rules also need a matching reject rule set, such as mitm/DomainReject.arrs, imported as a routing rule set and assigned to REJECT.
Only enable MITM for traffic you are allowed to inspect.
Suggested targets are only a starting point. Pick the policy that matches your own proxy setup.
| Rule | Rules | Suggested | Purpose | Import |
|---|---|---|---|---|
Reject |
6204 | REJECT |
Basic ads, malicious sites, and tracking block list. | Import |
Ads_AWAvenue |
899 | REJECT |
AWAvenue ad-blocking rules. | Import |
AI |
49 | Proxy | Common AI services. | Import |
Proxy |
1559 | Proxy | General proxy-domain collection. | Import |
ProxyGFW |
7597 | Proxy | Broad GFW proxy collection. | Import |
GFW |
4253 | Proxy | GFW domain list. | Import |
Direct |
36 | DIRECT |
Small direct-route supplement. | Import |
AppleCN |
9 | DIRECT |
Apple China and Apple CDN direct-route rules. | Import |
AppleProxy |
39 | Proxy | Apple services that usually need a proxy. | Import |
Apple |
44 | As needed | Basic Apple service rules. | Import |
AppleServices |
17 | As needed | Apple system service rules. | Import |
AppleMusic |
9 | As needed | Apple Music rules. | Import |
Google |
25 | Proxy | Google services. | Import |
YouTube |
14 | Proxy | YouTube rules. | Import |
Microsoft |
79 | As needed | Microsoft services. | Import |
GitHub |
6 | As needed | GitHub rules. | Import |
OneDrive |
15 | As needed | OneDrive rules. | Import |
Telegram |
45 | Proxy | Telegram domains and IP ranges. | Import |
Telegram_NoIP |
30 | Proxy | Telegram domains only, without IP ranges. | Import |
Twitter |
12 | Proxy | X / Twitter rules. | Import |
Instagram |
4 | Proxy | Instagram rules. | Import |
Facebook |
21 | Proxy | Facebook rules. | Import |
Netflix |
40 | Proxy | Netflix rules. | Import |
Disney |
172 | Proxy | Disney+ rules. | Import |
Spotify |
29 | Proxy | Spotify rules. | Import |
TikTok |
81 | Proxy | TikTok rules. | Import |
Bilibili |
20 | DIRECT |
Bilibili rules. | Import |
WeChat |
339 | DIRECT |
WeChat rules. | Import |
ChinaDomain |
857 | DIRECT |
Common mainland China domains. | Import |
CN_Additional |
43245 | DIRECT |
Mainland China domain supplement. | Import |
Geosite_CN |
4733 | DIRECT |
Mainland China domains extracted from geosite.dat GEOLOCATION-CN. |
Import |
CN_Accelerated |
63338 | DIRECT |
DNS-verified mainland China domain supplement built from dnsmasq-china-list. | Import |
ChinaIP |
5711 | DIRECT |
Mainland China IP CIDR rules. | Import |
GeoIP_CN |
5946 | DIRECT |
Mainland China IP CIDR rules extracted from Country.mmdb. | Import |
Lan |
8 | DIRECT |
LAN and private address rules. | Import |
Game |
597 | As needed | Game platform rules. | Import |
Steam |
54 | As needed | Steam rules. | Import |
PayPal |
247 | As needed | PayPal rules. | Import |
Cloudflare |
65 | As needed | Cloudflare rules. | Import |
CDN |
4529 | DIRECT |
CDN direct-route helper rules. | Import |
CN_Accelerated is built from dnsmasq-china-list accelerated-domains.china.conf, then rechecked with CN DNS and Country.mmdb. It excludes domains already covered by Anywhere's built-in CN rules, Geosite_CN, and geosite.dat GEOLOCATION-!CN, so it can supplement GeoIP CN for Anywhere's no-resolve routing without repeating the main CN sets. It is especially useful for less common China domains that may not appear in traffic-ranking based lists.
GitHub Actions updates regular generated rules daily. CN_Accelerated is updated by a separate weekly workflow, so CN DNS verification does not block the daily rule update.
Anywhere routing rule sets currently support domain suffix, domain keyword, IPv4 CIDR, and IPv6 CIDR. Unsupported upstream rule types are skipped during conversion.
Each custom Anywhere rule set can contain at most 100,000 rules. This repository automatically splits larger generated rule sets into numbered parts.
Thanks to the upstream projects and authors who maintain public rules and scripts:
- blackmatrix7/ios_rule_script
- ACL4SSR/ACL4SSR
- SukkaW/Surge
- ConnersHua/RuleGo
- NobyDa/Script
- Loyalsoldier/v2ray-rules-dat
- Loyalsoldier/surge-rules
- Loyalsoldier/geoip
- TG-Twilight/AWAvenue-Ads-Rule
- limbopro/Adblock4limbo
- dler-io/Rules
- geekdada/surge-list
- fmz200/wool_scripts
- VirgilClyne/iRingo
- app2smile/rules
- and more