Clash for Windows 归属地更改 & Scholar规则
Parse脚本,可适配所有订阅
使用说明
复制到Parsers
里,更新订阅即可
注:对所有订阅生效,如需针对单独订阅,请将- reg: ^.*$
改为- url: <订阅地址>
归属地更改
针对部分网站显示IP归属地的流量分流规则
parsers:
- reg: ^.*$ ## 匹配所有订阅
yaml:
prepend-proxy-groups:
- name: 🚩IP归属地
type: select
commands:
- proxy-groups.0.proxies=[]groupNames|^((?!IP).)*$
prepend-rules:
- RULE-SET,anti-ip,🚩IP归属地
mix-rule-providers:
anti-ip: {type: http, behavior: classical, url: "https://cdn.jsdelivr.net/gh/ferristale/anti-ip-attribution/generated/rule-provider.yaml", path: ./Ruleset/anti-ip.yaml, interval: 86400}
Scholar规则
学术网站不走代理
parsers:
- reg: ^.*$ ## 匹配所有订阅
yaml:
prepend-rules:
- RULE-SET,scholar,DIRECT
mix-rule-providers:
scholar: {type: http, behavior: classical, url: "https://cdn.jsdelivr.net/gh/ferristale/clash_rules_for_scholar/rules/scholar.yaml", path: ./Ruleset/scholar.yaml, interval: 86400}
- 原文作者:九燈
- 原文鏈接:https://ferristale.com/anti-ip-and-scholar-rules-for-clash/
- 原文鏈接:本作品採用CC BY-NC-ND 4.0. 進行許可,非商業轉載請註明出處(作者,原文鏈接),商業轉載請聯繫作者獲得授權。