Skip to content

Commit

Permalink
update rules
Browse files Browse the repository at this point in the history
  • Loading branch information
PaPerseller committed Mar 13, 2024
1 parent dc1e7da commit d7c00f4
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 79 deletions.
8 changes: 3 additions & 5 deletions Shadowrocket-ASN.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 此版本以中国大陆 ASN 直连代替 GeoIP:CN 直连
# 此版本以中国大陆 ASN 直连代替 GeoIP-CN 直连
[General]
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
Expand All @@ -19,7 +19,6 @@ dns-direct-fallback-proxy = true
// others
RULE-SET,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/BanAD.list,REJECT
DOMAIN-SUFFIX,log.tagtic.cn,REJECT
DOMAIN-SUFFIX,wwads.cn,REJECT
DOMAIN-SUFFIX,gzads.com,REJECT
DOMAIN-SUFFIX,gozendata.com,REJECT
DOMAIN-SUFFIX,gz-data.com,REJECT
Expand Down Expand Up @@ -48,7 +47,6 @@ RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/r
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/Weibo/Weibo.list,DIRECT
USER-AGENT,QQ*,DIRECT
USER-AGENT,TIM*,DIRECT
USER-AGENT,%E7%BD%91%E6%98%93,DIRECT
USER-AGENT,netease*,DIRECT
DOMAIN-SUFFIX,softpedia.com,DIRECT
DOMAIN-SUFFIX,qq.com,DIRECT
Expand Down Expand Up @@ -81,12 +79,12 @@ DOMAIN-SUFFIX,g.whatsapp.net,PROXY,force-remote-dns
DOMAIN-SUFFIX,us-west-2.amazonaws.com,PROXY,force-remote-dns
DOMAIN-SUFFIX,developer.apple.com,PROXY,force-remote-dns
DOMAIN-KEYWORD,appledaily,PROXY,force-remote-dns
DOMAIN-KEYWORD,github,PROXY,force-remote-dns
DOMAIN-KEYWORD,instagram,PROXY,force-remote-dns
DOMAIN-KEYWORD,twitter,PROXY,force-remote-dns
DOMAIN-KEYWORD,twimg,PROXY,force-remote-dns
DOMAIN-SUFFIX,humblebundle.com,PROXY,force-remote-dns
DOMAIN-KEYWORD,steam,PROXY,force-remote-dnsDOMAIN-KEYWORD,telegram,PROXY,force-remote-dns
DOMAIN-KEYWORD,steam,PROXY,force-remote-dns
DOMAIN-KEYWORD,telegram,PROXY,force-remote-dns
DOMAIN-KEYWORD,v2ex,PROXY,force-remote-dns

//Google
Expand Down
4 changes: 2 additions & 2 deletions DIY.module → Shadowrocket-DIY.module
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!name=自定义模块
#!desc=自定义配置
#新建模块后复制本模块内容并自行取消注释并增删修改后保存,不可通过 URL 添加以导致模块被更新重置
#新建模块后复制本模块内容,自行取消注释并增删修改后保存,不可通过 URL 添加以导致模块被更新重置

[General]
#dns-server = system, 114.114.114.114, 119.29.29.29, 1.0.0.1, 8.8.8.8, 8.8.4.4
Expand All @@ -19,7 +19,7 @@
#FINAL,PROXY

[Host]
#下行规则使用需取消注释符并修改wifi名称
# 下一行规则使用需取消注释符并修改wifi名称
#ssid:wifi名称 = server:system

[URL Rewrite]
Expand Down
6 changes: 2 additions & 4 deletions Shadowrocket.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ dns-direct-fallback-proxy = true
// others
RULE-SET,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/BanAD.list,REJECT
DOMAIN-SUFFIX,log.tagtic.cn,REJECT
DOMAIN-SUFFIX,wwads.cn,REJECT
DOMAIN-SUFFIX,gzads.com,REJECT
DOMAIN-SUFFIX,gozendata.com,REJECT
DOMAIN-SUFFIX,gz-data.com,REJECT
Expand Down Expand Up @@ -47,7 +46,6 @@ RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/r
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/Weibo/Weibo.list,DIRECT
USER-AGENT,QQ*,DIRECT
USER-AGENT,TIM*,DIRECT
USER-AGENT,%E7%BD%91%E6%98%93,DIRECT
USER-AGENT,netease*,DIRECT
DOMAIN-SUFFIX,softpedia.com,DIRECT
DOMAIN-SUFFIX,qq.com,DIRECT
Expand Down Expand Up @@ -80,12 +78,12 @@ DOMAIN-SUFFIX,g.whatsapp.net,PROXY,force-remote-dns
DOMAIN-SUFFIX,us-west-2.amazonaws.com,PROXY,force-remote-dns
DOMAIN-SUFFIX,developer.apple.com,PROXY,force-remote-dns
DOMAIN-KEYWORD,appledaily,PROXY,force-remote-dns
DOMAIN-KEYWORD,github,PROXY,force-remote-dns
DOMAIN-KEYWORD,instagram,PROXY,force-remote-dns
DOMAIN-KEYWORD,twitter,PROXY,force-remote-dns
DOMAIN-KEYWORD,twimg,PROXY,force-remote-dns
DOMAIN-SUFFIX,humblebundle.com,PROXY,force-remote-dns
DOMAIN-KEYWORD,steam,PROXY,force-remote-dnsDOMAIN-KEYWORD,telegram,PROXY,force-remote-dns
DOMAIN-KEYWORD,steam,PROXY,force-remote-dns
DOMAIN-KEYWORD,telegram,PROXY,force-remote-dns
DOMAIN-KEYWORD,v2ex,PROXY,force-remote-dns

//Google
Expand Down
1 change: 0 additions & 1 deletion scripts/acl.py → scripts/generate/acl.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
(^|\.)\w*gstatic\w*\.\w*$
(^|\.)\w*youtube\w*\.\w*$
(^|\.)\w*appledaily\w*\.\w*$
(^|\.)\w*github\w*\.\w*$
(^|\.)\w*instagram\w*\.\w*$
(^|\.)\w*twitter\w*\.\w*$
(^|\.)\w*twimg\w*\.\w*$
Expand Down
18 changes: 1 addition & 17 deletions scripts/v2ray-config.py → scripts/generate/v2ray-config.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,20 @@
"pagead",
"umeng",
"adnyg",
"admarvel",
"admaster",
"adsage",
"adsmogo",
"adsrvmedia",
"adwords",
"adservice",
"adsserving",
"analysis",
"analytics",
"applovin",
"domob",
"duomeng",
"dwtrack",
"guanggao",
"lianmeng",
"monitor",
"omgmta",
"openx",
"partnerad",
"pingfore",
"socdm",
"supersonicads",
"tracking",
"uedas",
"usage",
"wlmonitor",
"zjtoolbar",
"adsrvr",
"gdt"
"zjtoolbar"
],
"type" : "field"
},
Expand Down
7 changes: 0 additions & 7 deletions sing-box_client.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,8 @@
"domain_suffix": [
"ads.fmdisk.com",
"ads.feemoo.com",
"googleads.g.doubleclick.net",
"ads.google.com",
"afd.l.google.com",
"doubleclick.com",
"doubleclick.net",
"google-analytics.com",
"mobileads.google.com"
],
"domain_keyword": [
Expand Down Expand Up @@ -161,9 +157,6 @@
"outbound": "proxy"
},
{
"domain_suffix": [
"librespeed.cn"
],
"domain_keyword": [
"moutai",
"sina",
Expand Down
4 changes: 0 additions & 4 deletions sing-box_tungate.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,8 @@
"domain_suffix": [
"ads.fmdisk.com",
"ads.feemoo.com",
"googleads.g.doubleclick.net",
"ads.google.com",
"afd.l.google.com",
"doubleclick.com",
"doubleclick.net",
"google-analytics.com",
"mobileads.google.com"
],
"domain_keyword": [
Expand Down
9 changes: 6 additions & 3 deletions v2rayA.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ domain(umeng)->block

# proxy
ip(8.8.4.4, 8.8.8.8, 208.67.222.222, 208.67.220.220, 1.1.1.1, 1.1.1.2, 1.0.0.1, 9.9.9.9)->proxy
ip(geoip:telegram, geoip:twitter)->proxy
# 以下一行使用 Loyalsoldier 数据库启用
# ip(geoip:telegram, geoip:twitter)->proxy
domain(domain:bing.com, domain:v2ex.com, domain:developer.apple.com, domain:testflight.apple.com, domain:assets-cdn.github.com)->proxy
domain(contains: google, geosite:github, geosite:netflix, geosite:telegram, geosite:appledaily, geosite:twitter, domain:g.whatsapp.net, domain:t.me)->proxy
domain(domain:fanatical.com, domain:humblebundle.com, domain:underlords.com, domain:valvesoftware.com, domain:playartifact.com, domain:steam-chat.com, domain:steamcommunity.com, domain:steamgames.com, domain:steampowered.com, domain:steamstatic.com, domain:steamstat.us, domain:steambroadcast.akamaized.net, domain:steamcdn-a.akamaihd.net, domain:steamcommunity-a.akamaihd.net, domain:steamstore-a.akamaihd.net, domain:steamusercontent-a.akamaihd.net, domain:steamuserimages-a.akamaihd.net, domain:steampipe.akamaized.net, domain:steam-chat.com)->proxy

# direct
domain(domain:gdmf.apple.com, domain:fonts.googleapis.com, domain:fonts.gstatic.com, domain:bilibili.com, domain:aliyundrive.com, domain:push.apple.com, domain:identity.apple.com, domain:librespeed.cn, domain:cdn.jsdelivr.net, domain:tunnel.ddnsto.com, domain:tunnel.kooldns.cn, domain:tunnel.tocmcc.cn, domain:kooldns.cn, domain:tocmcc.cn, domain:ddnsto.com, keyword:moutai, keyword:sina, keyword:alibaba, keyword:airdroid)->direct
domain(geosite:apple-cn, geosite:cn)->direct
domain(domain:gdmf.apple.com, domain:fonts.googleapis.com, domain:fonts.gstatic.com, domain:bilibili.com, domain:aliyundrive.com, domain:push.apple.com, domain:identity.apple.com, domain:cdn.jsdelivr.net, keyword:moutai, keyword:sina, keyword:alibaba, keyword:airdroid)->direct
# 以下一行使用 Loyalsoldier 数据库启用
# domain(geosite:apple-cn)->direct
domain(geosite:cn)->direct
domain(domain:cdn.mileweb.cs.steampowered.com.8686c.com, domain:cdn-ws.content.steamchina.com, domain:cdn-qc.content.steamchina.com, domain:cdn-ali.content.steamchina.com, domain:epicgames-download1-1251447533.file.myqcloud.com, domain:csgo.wmsj.cn, domain:dl.steam.clngaa.com, domain:dl.steam.ksyna.com, domain:dota2.wmsj.cn, domain:st.dl.bscstorage.net, domain:st.dl.eccdnx.com, domain:st.dl.pinyuncloud.com, domain:steampipe.steamcontent.tnkjmec.com, domain:steampowered.com.8686c.com, domain:steamstatic.com.8686c.com, domain:wmsjsteam.com, domain:cm.steampowered.com, domain:steamchina.com, domain:steamcontent.com, domain:steamusercontent.com)->direct
ip(geoip:private, geoip:cn)->direct
19 changes: 1 addition & 18 deletions v2rayN(G)/block.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,41 +10,24 @@ domain:log.tagtic.cn,
domain:pgdt.ugdtimg.com,
domain:sdownload.stargame.com,
domain:sdkapp.uve.weibo.com,
domain:wwads.cn,
domain:gzads.com,
domain:gozendata.com,
domain:gz-data.com,
googleads,
pagead,
umeng,
adnyg,
admarvel,
admaster,
adsage,
adsmogo,
adsrvmedia,
adwords,
adservice,
adsserving,
analysis,
analytics,
applovin,
domob,
duomeng,
dwtrack,
guanggao,
lianmeng,
monitor,
omgmta,
openx,
partnerad,
pingfore,
socdm,
supersonicads,
tracking,
uedas,
usage,
wlmonitor,
zjtoolbar,
adsrvr,
gdt,
zjtoolbar,
19 changes: 1 addition & 18 deletions v2rayN(G)/v2rayN_subrules_whitelist
Original file line number Diff line number Diff line change
Expand Up @@ -22,44 +22,27 @@
"domain:log.tagtic.cn",
"domain:pgdt.ugdtimg.com",
"domain:sdownload.stargame.com",
"domain:wwads.cn",
"domain:gzads.com",
"domain:gozendata.com",
"domain:gz-data.com",
"googleads",
"pagead",
"adnyg",
"umeng",
"admarvel",
"admaster",
"adsage",
"adsmogo",
"adsrvmedia",
"adwords",
"adservice",
"adsserving",
"analysis",
"analytics",
"applovin",
"domob",
"duomeng",
"dwtrack",
"guanggao",
"lianmeng",
"monitor",
"omgmta",
"openx",
"partnerad",
"pingfore",
"socdm",
"supersonicads",
"tracking",
"uedas",
"usage",
"wlmonitor",
"zjtoolbar",
"adsrvr",
"gdt"
"zjtoolbar"
]
},
{
Expand Down

0 comments on commit d7c00f4

Please sign in to comment.