forked from h2y/Shadowrocket-ADBlock-Rules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rules.conf
73 lines (66 loc) · 5.29 KB
/
rules.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Enterpr1se.info (https://github.com/Enterpr1se/gfw-rules) 2024-08-07
# DIVENG.io 2018.10.26
# Best Shadowrocket Rules (https://github.com/h2y/Shadowrocket-ADBlock-Rules)
# by Moshel
# build time: 2021-03-29 02:33:16
[General]
yaml = true
bypass-system = true
skip-proxy = 192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,localhost,*.local,captive.apple.com,*.ccb.com,*.abchina.com.cn,*.psbc.com,www.baidu.com
tun-excluded-routes = 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.51.100.0/24, 203.0.113.0/24, 224.0.0.0/4, 255.255.255.255/32, 239.255.255.250/32
dns-server = system
fallback-dns-server = https://doh.pub/dns-query,https://dns.alidns.com/dns-query,223.5.5.5,119.29.29.29
dns-direct-system = false
icmp-auto-reply = true
always-reject-url-rewrite = false
private-ip-answer = true
dns-direct-fallback-proxy = false
update-url = https://raw.githubusercontent.com/Enterpr1se/gfw-rules/master/rules.conf
[Rule]
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/AppleNews/AppleNews.list,PROXY
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/Apple/Apple.list,DIRECT
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/YouTube/YouTube.list,PROXY
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/Netflix/Netflix.list,PROXY
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/Disney/Disney.list,PROXY
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/HBO/HBO.list,PROXY
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/Spotify/Spotify.list,PROXY
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/Telegram/Telegram.list,PROXY
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/PayPal/PayPal.list,PROXY
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/Twitter/Twitter.list,PROXY
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/Facebook/Facebook.list,PROXY
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/Amazon/Amazon.list,PROXY
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/Microsoft/Microsoft.list,DIRECT
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/Google/Google.list,PROXY
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/TikTok/TikTok.list,PROXY
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/TVB/TVB.list,PROXY
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/Global/Global.list,PROXY
RULE-SET,https://raw.githubusercontent.com/Enterpr1se/gfw-rules/master/custom-rules/Crypto.list,PROXY
RULE-SET,https://raw.githubusercontent.com/Enterpr1se/gfw-rules/master/custom-rules/Edu.list,PROXY
RULE-SET,https://raw.githubusercontent.com/Enterpr1se/gfw-rules/master/custom-rules/Games.list,PROXY
RULE-SET,https://raw.githubusercontent.com/Enterpr1se/gfw-rules/master/custom-rules/Gov.list,PROXY
RULE-SET,https://raw.githubusercontent.com/Enterpr1se/gfw-rules/master/custom-rules/Medias.list,PROXY
RULE-SET,https://raw.githubusercontent.com/Enterpr1se/gfw-rules/master/custom-rules/NSFW.list,PROXY
RULE-SET,https://raw.githubusercontent.com/Enterpr1se/gfw-rules/master/custom-rules/Political.list,PROXY
RULE-SET,https://raw.githubusercontent.com/Enterpr1se/gfw-rules/master/custom-rules/Shorturl.list,PROXY
RULE-SET,https://raw.githubusercontent.com/Enterpr1se/gfw-rules/master/custom-rules/Tech.list,PROXY
RULE-SET,https://raw.githubusercontent.com/Enterpr1se/gfw-rules/master/custom-rules/Trackers.list,DIRECT
RULE-SET,https://raw.githubusercontent.com/Enterpr1se/gfw-rules/master/custom-rules/Other.list,PROXY
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/Lan/Lan.list,DIRECT # 本機區域網路位址的規則集。
FINAL,direct
[Host]
*.apple.com=server:system
*.cdn-apple.com=server:system
*.icloud.com=server:system
localhost = 127.0.0.1
[URL Rewrite]
^https?://(www.)?g.cn https://www.google.com 302
^https?://(www.)?google.cn https://www.google.com 302
# 免拔卡解鎖TikTok的重寫,默認解鎖地區為「美國」。需要換區時,請將下面一行的「US」修改成其他國家或地區的英文名縮寫,如「TW、KR、JP」等。
(?<=_region=)CN(?=&) US 307
(?<=&mcc_mnc=)4 2 307
^(https?:\/\/(tnc|dm)[\w-]+\.\w+\.com\/.+)(\?)(.+) $1$3 302
(^https?:\/\/*\.\w{4}okv.com\/.+&.+)(\d{2}\.3\.\d)(.+) $118.0$3 302
[MITM]
# Shadowrocket僅會解密hostname指定的域名的請求,可以使用通配符。也可以使用前綴 - 排除特定主機名,如 -*.example.com。iOS系統和某些應用有嚴格的安全策略,僅信任某些特定的證書,對這些域名啓動解密可能導致問題,如 *.apple.com,*.icloud.com。
hostname = *.google.cn,*.tiktokv.com,*.byteoversea.com,*.tik-tokapi.com
# By Moshel @ https://hzy.pw/