Skip to content

Instantly share code, notes, and snippets.

@LeiHao0
Last active July 29, 2023 00:29
Show Gist options
  • Save LeiHao0/47659e248eae3610a317d0ef52e56505 to your computer and use it in GitHub Desktop.
Save LeiHao0/47659e248eae3610a317d0ef52e56505 to your computer and use it in GitHub Desktop.
rules
[General]
ipv6 = false
bypass-system = true
dns-server = https://223.5.5.5/dns-query
bypass-tun = 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.0.0.0/24, 192.0.2.0/24, 192.88.99.0/24, 192.168.0.0/16, 198.18.0.0/15, 198.51.100.0/24, 203.0.113.0/24, 224.0.0.0/4, 255.255.255.255/32
skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local, *.crashlytics.com, *.edu.cn, captive.apple.com
[Proxy Group]
Proxies = select,🇭🇰HK,🇨🇳TW,🇯🇵JP,🇰🇷KR,🇸🇬SG,🇺🇸US, interval=600,timeout=5,select=0,url=http://www.gstatic.com/generate_204
YouTube = select,Proxies,🇭🇰HK,🇨🇳TW,🇯🇵JP,🇰🇷KR,🇸🇬SG,🇺🇸US,select=0
Netflix = select,Proxies,🇭🇰HK,🇨🇳TW,🇯🇵JP,🇰🇷KR,🇸🇬SG,🇺🇸US,select=0
Disney = select,Proxies,🇭🇰HK,🇨🇳TW,🇯🇵JP,🇰🇷KR,🇸🇬SG,🇺🇸US,select=0
TikTok = select,Proxies,🇭🇰HK,🇨🇳TW,🇯🇵JP,🇰🇷KR,🇸🇬SG,🇺🇸US,select=0
OpenAI = select,Proxies,🇨🇳TW,🇯🇵JP,🇰🇷KR,🇸🇬SG,🇺🇸US,select=0
Apple = select,DIRECT,Proxies,🇭🇰HK,🇨🇳TW,🇯🇵JP,🇰🇷KR,🇸🇬SG,🇺🇸US,select=0
🇭🇰HK = select,url=http://www.gstatic.com/generate_204,interval=1800,tolerance=10,timeout=5,select=0,policy-regex-filter=香港
🇨🇳TW = select,url=http://www.gstatic.com/generate_204,interval=1800,tolerance=10,timeout=5,select=0,policy-regex-filter=台湾
🇯🇵JP = select,url=http://www.gstatic.com/generate_204,interval=1800,tolerance=10,timeout=5,select=0,policy-regex-filter=日本
🇰🇷KR = select,url=http://www.gstatic.com/generate_204,interval=1800,tolerance=10,timeout=5,select=0,policy-regex-filter=韩国
🇸🇬SG = select,url=http://www.gstatic.com/generate_204,interval=1800,tolerance=10,timeout=5,select=0,policy-regex-filter=(新加坡|狮城)
🇺🇸US = select,url=http://www.gstatic.com/generate_204,interval=1800,tolerance=10,timeout=5,select=0,policy-regex-filter=美国
[Rule]
DOMAIN-SUFFIX,cdn-lfs.huggingface.co,DIRECT
# 本地网络-直连
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/Lan/Lan.list,DIRECT
# 去广告白名单-直连
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/Direct/Direct.list,DIRECT
# 常见广告关键字-拦截
RULE-SET,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/BanAD.list,REJECT
# 常用应用内去广告-拦截
RULE-SET,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/BanProgramAD.list,REJECT
# 谷歌国内业务-直连
RULE-SET,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/GoogleCN.list,DIRECT
# Apple
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/Apple/Apple.list,Apple
# Netflix
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/Netflix/Netflix.list,Netflix
# Disney
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/Disney/Disney.list,Disney
# TikTok
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/TikTok/TikTok.list,TikTok
# YouTube
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/YouTube/YouTube.list,YouTube
# OpenAI
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/OpenAI/OpenAI.list,OpenAI
# 国内域名-直连
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/China/China.list,DIRECT
#规则之外
GEOIP,CN,DIRECT
FINAL,Proxies
[Host]
[URL Rewrite]
^https?://(www.)?g.cn https://www.google.com 302
^https?://(www.)?google.cn https://www.google.com 302
[Script]
[MITM]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment