Skip to content

Commit

Permalink
Merge pull request #52 from MoriMeina/main
Browse files Browse the repository at this point in the history
新增Bilibili内容CDN、视频CDN、直播CDN,为缓解打开视频加载卡顿问题#issue49
  • Loading branch information
SunsetMkt authored Dec 11, 2023
2 parents 9b62a45 + 87ff9ad commit 6196191
Show file tree
Hide file tree
Showing 12 changed files with 57 additions and 30 deletions.
9 changes: 6 additions & 3 deletions generated/parser.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 针对部分网站显示IP归属地的分流规则
# anti-ip-attribution parser.yaml v0.3.0 2f46cd7101a50189bcc97ce9f80907e0908c49d8
# anti-ip-attribution parser.yaml v0.3.0 857758b353afcfe17941542e3a6b2a21bd28c0c4
# https://github.com/lwd-temp/anti-ip-attribution
# 适用于Clash for Windows的配置文件预处理功能,详见https://docs.cfw.lbyczf.com/contents/parser.html
parsers:
Expand Down Expand Up @@ -30,10 +30,13 @@ parsers:
- IP-CIDR,112.64.218.119/32,REJECT
- IP-CIDR,112.65.200.117/32,REJECT
- "DOMAIN-SUFFIX,biliapi.net,IP\u5F52\u5C5E\u5730"
- "DOMAIN,api.bilibili.tv,IP\u5F52\u5C5E\u5730"
- "DOMAIN-SUFFIX,biliapi.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN-SUFFIX,bilibili.com,IP\u5F52\u5C5E\u5730"
- IP-CIDR,203.107.1.0/24,REJECT
- "IP-CIDR,203.107.1.0/24,IP\u5F52\u5C5E\u5730"
- DOMAIN-SUFFIX,bilivideo.com,DIRECT
- DOMAIN-SUFFIX,akamaized.net,DIRECT
- DOMAIN-SUFFIX,hdslb.com,DIRECT
- DOMAIN-SUFFIX,szbdyd.com,DIRECT
- "DOMAIN-SUFFIX,weibo.cn,IP\u5F52\u5C5E\u5730"
- "DOMAIN-SUFFIX,weibo.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN-SUFFIX,weibocdn.com,IP\u5F52\u5C5E\u5730"
Expand Down
9 changes: 6 additions & 3 deletions generated/quantumultx-domesticsocial.list
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 针对部分网站显示IP归属地的分流规则
# anti-ip-attribution quantumultx-domesticsocial.list v0.3.0 2f46cd7101a50189bcc97ce9f80907e0908c49d8
# anti-ip-attribution quantumultx-domesticsocial.list v0.3.0 857758b353afcfe17941542e3a6b2a21bd28c0c4
# https://github.com/lwd-temp/anti-ip-attribution
# QuantumultX分流规则,策略组名称为DomesticSocial
DOMAIN,httpdns.bilivideo.com,REJECT
Expand All @@ -20,10 +20,13 @@ IP-CIDR,116.63.10.31/32,REJECT
IP-CIDR,112.64.218.119/32,REJECT
IP-CIDR,112.65.200.117/32,REJECT
DOMAIN-SUFFIX,biliapi.net,DomesticSocial
DOMAIN,api.bilibili.tv,DomesticSocial
DOMAIN-SUFFIX,biliapi.com,DomesticSocial
DOMAIN-SUFFIX,bilibili.com,DomesticSocial
IP-CIDR,203.107.1.0/24,REJECT
IP-CIDR,203.107.1.0/24,DomesticSocial
DOMAIN-SUFFIX,bilivideo.com,DIRECT
DOMAIN-SUFFIX,akamaized.net,DIRECT
DOMAIN-SUFFIX,hdslb.com,DIRECT
DOMAIN-SUFFIX,szbdyd.com,DIRECT
DOMAIN-SUFFIX,weibo.cn,DomesticSocial
DOMAIN-SUFFIX,weibo.com,DomesticSocial
DOMAIN-SUFFIX,weibocdn.com,DomesticSocial
Expand Down
9 changes: 6 additions & 3 deletions generated/quantumultx.list
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 针对部分网站显示IP归属地的分流规则
# anti-ip-attribution quantumultx.list v0.3.0 2f46cd7101a50189bcc97ce9f80907e0908c49d8
# anti-ip-attribution quantumultx.list v0.3.0 857758b353afcfe17941542e3a6b2a21bd28c0c4
# https://github.com/lwd-temp/anti-ip-attribution
# QuantumultX分流规则
DOMAIN,httpdns.bilivideo.com,REJECT
Expand All @@ -20,10 +20,13 @@ IP-CIDR,116.63.10.31/32,REJECT
IP-CIDR,112.64.218.119/32,REJECT
IP-CIDR,112.65.200.117/32,REJECT
DOMAIN-SUFFIX,biliapi.net,IP
DOMAIN,api.bilibili.tv,IP
DOMAIN-SUFFIX,biliapi.com,IP
DOMAIN-SUFFIX,bilibili.com,IP
IP-CIDR,203.107.1.0/24,REJECT
IP-CIDR,203.107.1.0/24,IP
DOMAIN-SUFFIX,bilivideo.com,DIRECT
DOMAIN-SUFFIX,akamaized.net,DIRECT
DOMAIN-SUFFIX,hdslb.com,DIRECT
DOMAIN-SUFFIX,szbdyd.com,DIRECT
DOMAIN-SUFFIX,weibo.cn,IP
DOMAIN-SUFFIX,weibo.com,IP
DOMAIN-SUFFIX,weibocdn.com,IP
Expand Down
6 changes: 5 additions & 1 deletion generated/rule-provider-direct.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# 针对部分网站显示IP归属地的分流规则
# anti-ip-attribution rule-provider-direct.yaml v0.3.0 2f46cd7101a50189bcc97ce9f80907e0908c49d8
# anti-ip-attribution rule-provider-direct.yaml v0.3.0 857758b353afcfe17941542e3a6b2a21bd28c0c4
# https://github.com/lwd-temp/anti-ip-attribution
# 适用于Clash的Rule Provider功能,详见https://lancellc.gitbook.io/clash/clash-config-file/rule-provider
payload:
- DOMAIN-SUFFIX,bilivideo.com,DIRECT
- DOMAIN-SUFFIX,akamaized.net,DIRECT
- DOMAIN-SUFFIX,hdslb.com,DIRECT
- DOMAIN-SUFFIX,szbdyd.com,DIRECT
- DOMAIN-SUFFIX,zijieapi.com,DIRECT
- DOMAIN-SUFFIX,ecombdapi.com,DIRECT
- DOMAIN-SUFFIX,hls3-akm.douyucdn.cn,DIRECT
Expand Down
4 changes: 2 additions & 2 deletions generated/rule-provider-proxy.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# 针对部分网站显示IP归属地的分流规则
# anti-ip-attribution rule-provider-proxy.yaml v0.3.0 2f46cd7101a50189bcc97ce9f80907e0908c49d8
# anti-ip-attribution rule-provider-proxy.yaml v0.3.0 857758b353afcfe17941542e3a6b2a21bd28c0c4
# https://github.com/lwd-temp/anti-ip-attribution
# 适用于Clash的Rule Provider功能,详见https://lancellc.gitbook.io/clash/clash-config-file/rule-provider
payload:
- DOMAIN-SUFFIX,biliapi.net
- DOMAIN,api.bilibili.tv
- DOMAIN-SUFFIX,biliapi.com
- DOMAIN-SUFFIX,bilibili.com
- IP-CIDR,203.107.1.0/24,no-resolve
- DOMAIN-SUFFIX,weibo.cn
- DOMAIN-SUFFIX,weibo.com
- DOMAIN-SUFFIX,weibocdn.com
Expand Down
3 changes: 1 addition & 2 deletions generated/rule-provider-reject.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 针对部分网站显示IP归属地的分流规则
# anti-ip-attribution rule-provider-reject.yaml v0.3.0 2f46cd7101a50189bcc97ce9f80907e0908c49d8
# anti-ip-attribution rule-provider-reject.yaml v0.3.0 857758b353afcfe17941542e3a6b2a21bd28c0c4
# https://github.com/lwd-temp/anti-ip-attribution
# 适用于Clash的Rule Provider功能,详见https://lancellc.gitbook.io/clash/clash-config-file/rule-provider
payload:
Expand All @@ -20,7 +20,6 @@ payload:
- IP-CIDR,116.63.10.31/32,REJECT,no-resolve
- IP-CIDR,112.64.218.119/32,REJECT,no-resolve
- IP-CIDR,112.65.200.117/32,REJECT,no-resolve
- IP-CIDR,203.107.1.0/24,REJECT,no-resolve
- IP-CIDR,118.89.204.198/23,REJECT,no-resolve
- IP-CIDR6,2402:4e00:1200:ed00:0:9089:6dac:96b6/40,REJECT,no-resolve
- IP-CIDR,119.29.29.98/32,REJECT,no-resolve
9 changes: 6 additions & 3 deletions generated/rule-provider.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 针对部分网站显示IP归属地的分流规则
# anti-ip-attribution rule-provider.yaml v0.3.0 2f46cd7101a50189bcc97ce9f80907e0908c49d8
# anti-ip-attribution rule-provider.yaml v0.3.0 857758b353afcfe17941542e3a6b2a21bd28c0c4
# https://github.com/lwd-temp/anti-ip-attribution
# 适用于Clash的Rule Provider功能,详见https://lancellc.gitbook.io/clash/clash-config-file/rule-provider
payload:
Expand All @@ -21,10 +21,13 @@ payload:
- IP-CIDR,112.64.218.119/32,REJECT,no-resolve
- IP-CIDR,112.65.200.117/32,REJECT,no-resolve
- DOMAIN-SUFFIX,biliapi.net
- DOMAIN,api.bilibili.tv
- DOMAIN-SUFFIX,biliapi.com
- DOMAIN-SUFFIX,bilibili.com
- IP-CIDR,203.107.1.0/24,REJECT,no-resolve
- IP-CIDR,203.107.1.0/24,no-resolve
- DOMAIN-SUFFIX,bilivideo.com,DIRECT
- DOMAIN-SUFFIX,akamaized.net,DIRECT
- DOMAIN-SUFFIX,hdslb.com,DIRECT
- DOMAIN-SUFFIX,szbdyd.com,DIRECT
- DOMAIN-SUFFIX,weibo.cn
- DOMAIN-SUFFIX,weibo.com
- DOMAIN-SUFFIX,weibocdn.com
Expand Down
6 changes: 5 additions & 1 deletion generated/rule-set-direct.list
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# 针对部分网站显示IP归属地的分流规则
# anti-ip-attribution rule-set-direct.list v0.3.0 2f46cd7101a50189bcc97ce9f80907e0908c49d8
# anti-ip-attribution rule-set-direct.list v0.3.0 857758b353afcfe17941542e3a6b2a21bd28c0c4
# https://github.com/lwd-temp/anti-ip-attribution
# 适用于Clash RULE-SET
DOMAIN-SUFFIX,bilivideo.com
DOMAIN-SUFFIX,akamaized.net
DOMAIN-SUFFIX,hdslb.com
DOMAIN-SUFFIX,szbdyd.com
DOMAIN-SUFFIX,zijieapi.com
DOMAIN-SUFFIX,ecombdapi.com
DOMAIN-SUFFIX,hls3-akm.douyucdn.cn
Expand Down
4 changes: 2 additions & 2 deletions generated/rule-set-proxy.list
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# 针对部分网站显示IP归属地的分流规则
# anti-ip-attribution rule-set-proxy.list v0.3.0 2f46cd7101a50189bcc97ce9f80907e0908c49d8
# anti-ip-attribution rule-set-proxy.list v0.3.0 857758b353afcfe17941542e3a6b2a21bd28c0c4
# https://github.com/lwd-temp/anti-ip-attribution
# 适用于Clash RULE-SET
DOMAIN-SUFFIX,biliapi.net
DOMAIN,api.bilibili.tv
DOMAIN-SUFFIX,biliapi.com
DOMAIN-SUFFIX,bilibili.com
IP-CIDR,203.107.1.0/24,no-resolve
DOMAIN-SUFFIX,weibo.cn
DOMAIN-SUFFIX,weibo.com
DOMAIN-SUFFIX,weibocdn.com
Expand Down
3 changes: 1 addition & 2 deletions generated/rule-set-reject.list
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 针对部分网站显示IP归属地的分流规则
# anti-ip-attribution rule-set-reject.list v0.3.0 2f46cd7101a50189bcc97ce9f80907e0908c49d8
# anti-ip-attribution rule-set-reject.list v0.3.0 857758b353afcfe17941542e3a6b2a21bd28c0c4
# https://github.com/lwd-temp/anti-ip-attribution
# 适用于Clash RULE-SET
DOMAIN,httpdns.bilivideo.com
Expand All @@ -19,7 +19,6 @@ IP-CIDR,114.116.215.110/32,no-resolve
IP-CIDR,116.63.10.31/32,no-resolve
IP-CIDR,112.64.218.119/32,no-resolve
IP-CIDR,112.65.200.117/32,no-resolve
IP-CIDR,203.107.1.0/24,no-resolve
IP-CIDR,118.89.204.198/23,no-resolve
IP-CIDR6,2402:4e00:1200:ed00:0:9089:6dac:96b6/40,no-resolve
IP-CIDR,119.29.29.98/32,no-resolve
9 changes: 6 additions & 3 deletions generated/surge.list
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 针对部分网站显示IP归属地的分流规则
# anti-ip-attribution surge.list v0.3.0 2f46cd7101a50189bcc97ce9f80907e0908c49d8
# anti-ip-attribution surge.list v0.3.0 857758b353afcfe17941542e3a6b2a21bd28c0c4
# https://github.com/lwd-temp/anti-ip-attribution
# Surge分流规则
DOMAIN,httpdns.bilivideo.com,REJECT
Expand All @@ -20,10 +20,13 @@ IP-CIDR,116.63.10.31/32,REJECT
IP-CIDR,112.64.218.119/32,REJECT
IP-CIDR,112.65.200.117/32,REJECT
DOMAIN-SUFFIX,biliapi.net
DOMAIN,api.bilibili.tv
DOMAIN-SUFFIX,biliapi.com
DOMAIN-SUFFIX,bilibili.com
IP-CIDR,203.107.1.0/24,REJECT
IP-CIDR,203.107.1.0/24
DOMAIN-SUFFIX,bilivideo.com,DIRECT
DOMAIN-SUFFIX,akamaized.net,DIRECT
DOMAIN-SUFFIX,hdslb.com,DIRECT
DOMAIN-SUFFIX,szbdyd.com,DIRECT
DOMAIN-SUFFIX,weibo.cn
DOMAIN-SUFFIX,weibo.com
DOMAIN-SUFFIX,weibocdn.com
Expand Down
16 changes: 11 additions & 5 deletions rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,27 @@ config:
- IP-CIDR,112.64.218.119/32,REJECT
- IP-CIDR,112.65.200.117/32,REJECT
- DOMAIN-SUFFIX,biliapi.net # 哔哩哔哩API域名
# - DOMAIN,api.bilibili.com # 哔哩哔哩国内网页版API域名 # 网友提供哔哩哔哩IP定位接口
- DOMAIN,api.bilibili.tv # 哔哩哔哩海外版?
# - DOMAIN,app.bilibili.com # 哔哩哔哩App的API域名
# - DOMAIN,api.bilibili.tv # 哔哩哔哩海外版?(使用性存疑)
- DOMAIN-SUFFIX,biliapi.com # 哔哩哔哩App的API域名
- DOMAIN-SUFFIX,bilibili.com # 哔哩哔哩全站域名,不包括内容CDN
- IP-CIDR,203.107.1.0/24 #不需要REJECT,会影响其他HTTPDNS,仅代理即可
# issue/49,CDN内容直连
- DOMAIN-SUFFIX,bilivideo.com,DIRECT # 直播
- DOMAIN-SUFFIX,akamaized.net,DIRECT # akamai视频CDN
- DOMAIN-SUFFIX,hdslb.com,DIRECT # 静态内容
- DOMAIN-SUFFIX,szbdyd.com,DIRECT # PCDN(P2P)
# - DOMAIN,api.bilibili.com # 哔哩哔哩国内网页版API域名 # 网友提供哔哩哔哩IP定位接口
# - DOMAIN,app.bilibili.com # 哔哩哔哩App的API域名
# - DOMAIN,api.live.bilibili.com # 哔哩哔哩直播API域名
# - DOMAIN,api.vc.bilibili.com # 哔哩哔哩视频API域名,Copilot提供
# - DOMAIN,passport.bilibili.com # 哔哩哔哩账号登录API域名
# - DOMAIN,live-trace.bilibili.com # 哔哩哔哩跟踪?API域名
# - DOMAIN,message.bilibili.com # 哔哩哔哩消息API域名
# - DOMAIN,cm.bilibili.com # 哔哩哔哩统计API域名
- DOMAIN-SUFFIX,bilibili.com # 哔哩哔哩全站域名,不包括内容CDN
# - DOMAIN-SUFFIX,im9.com
# - DOMAIN-SUFFIX,acg.tv
# - DOMAIN-SUFFIX,biligame.com
- IP-CIDR,203.107.1.0/24,REJECT

# ======= 微博 ======= #
# 微博
# issue#5 报告发表和评论操作会暴露IP,建议不要使用手机客户端,无法确定是否存在其他IP或域名,已扩充到DOMAIN-SUFFIX
Expand Down

0 comments on commit 6196191

Please sign in to comment.