使用 Clash for Windows 的 Parsers 功能對配置文件預處理,增加針對部分網站顯示 IP 歸屬地的流量分流規則


快速上手

使用自動生成的配置文件

https://github.com/lwd-temp/anti-ip-attribution/raw/main/generated/parser.yaml

將下面的 🚀 节点选择 替換為自己實際使用的 proxy-group

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
parsers:
- reg: '^.*$'
yaml:
prepend-proxy-groups:
- name: "IP\u5F52\u5C5E\u5730"
proxies:
- "🚀 节点选择"
- DIRECT
type: select
prepend-rules:
- "DOMAIN-SUFFIX,biliapi.net,IP\u5F52\u5C5E\u5730"
- "DOMAIN,api.bilibili.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,api.bilibili.tv,IP\u5F52\u5C5E\u5730"
- "DOMAIN,app.bilibili.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN-SUFFIX,biliapi.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,api.live.bilibili.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,api.vc.bilibili.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,passport.bilibili.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,live-trace.bilibili.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,message.bilibili.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,cm.bilibili.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN-SUFFIX,bilibili.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN-SUFFIX,im9.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN-SUFFIX,acg.tv,IP\u5F52\u5C5E\u5730"
- "DOMAIN-SUFFIX,biligame.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN-SUFFIX,weibo.cn,IP\u5F52\u5C5E\u5730"
- "DOMAIN-SUFFIX,weibo.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN-SUFFIX,weibocdn.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN-KEYWORD,weibo,IP\u5F52\u5C5E\u5730"
- "DOMAIN,tieba.baidu.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,tbmsg.baidu.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,tb5.bdstatic.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,fclog.baidu.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,gsp0.baidu.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,hm.baidu.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,www.baidu.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,szshort.weixin.qq.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,szextshort.weixin.qq.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,szminorshort.weixin.qq.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,mp.weixin.qq.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN-SUFFIX,zhihu.com,IP\u5F52\u5C5E\u5730"
- "IP-CIDR,103.41.167.0/24,IP\u5F52\u5C5E\u5730"
- "DOMAIN-KEYWORD,core-c-lq,IP\u5F52\u5C5E\u5730"
- "DOMAIN-KEYWORD,core-lq,IP\u5F52\u5C5E\u5730"
- "DOMAIN-KEYWORD,normal-c-lq,IP\u5F52\u5C5E\u5730"
- "DOMAIN-KEYWORD,normal-lq,IP\u5F52\u5C5E\u5730"
- "DOMAIN-KEYWORD,search-quic-lq,IP\u5F52\u5C5E\u5730"
- "DOMAIN-KEYWORD,search-lq,IP\u5F52\u5C5E\u5730"
- "DOMAIN-SUFFIX,toutiaoapi.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN-SUFFIX,gifshow.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN-SUFFIX,ksapisrv.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN-SUFFIX,xiaohongshu.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,keylol.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN-SUFFIX,ixigua.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,www.wenshushu.cn,IP\u5F52\u5C5E\u5730"
- IP-CIDR,119.29.29.98/32,REJECT
- "DOMAIN,frodo.douban.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,www.douban.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,api.coolapk.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,api.taptapdada.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,god.gameyw.netease.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN-SUFFIX,huya.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN-SUFFIX,dongqiudi.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,ngabbs.com,IP\u5F52\u5C5E\u5730"
- "DOMAIN,api.vip.miui.com,IP\u5F52\u5C5E\u5730"