本项目中所有内容只供学习和研究使用,不得将本项目中任何内容用于违反任何国家/地区/组织等的法律法规或相关规定的其他用途。
本项目对 Loon、QuantumultX、AdGuard Home、Surge 提供完全支持
优先级:Loon = AdGuard Home = Surge > QuantumultX > Clash
经过鄙人的重构,现在提供 Host, DomainSet, Loon, QuantumultX 的支持,各位可以按需引用
被迫修改了一些规则的路径和名字,我尽量保证此类事件不再发生
优先级从高到低:
FuckRogueSoftware
ProxyRules
...
AppleNoChinaCDNRules
AppleCDNRules
AppleAPIRules
AppleRules
...
DirectRules
BaseRules
# 去广告
https://raw.githubusercontent.com/Elysian-Realme/FuGfConfig/main/ConfigFile/Loon/LoonRemoteRule/FuckRogueSoftwareRules.conf, policy=Advertising, tag=FuckRogueSoftware, enabled=true
# 自定义的代理
https://raw.githubusercontent.com/Elysian-Realme/FuGfConfig/main/ConfigFile/Loon/LoonRemoteRule/ProxyRules.conf, policy=PROXY, tag=CustomProxy, enabled=true
https://raw.githubusercontent.com/Elysian-Realme/FuGfConfig/main/ConfigFile/Loon/LoonRemoteRule/TelegramRules.conf, policy=PROXY, tag=TelegramRules, enabled=true
# Apple 规则
https://raw.githubusercontent.com/Elysian-Realme/FuGfConfig/main/ConfigFile/Loon/LoonRemoteRule/Apple/AppleNoChinaCDNRules.conf, policy=AppleNoChinaCDN, tag=AppleNoChinaCDN, enabled=true
https://raw.githubusercontent.com/Elysian-Realme/FuGfConfig/main/ConfigFile/Loon/LoonRemoteRule/Apple/AppleRules.conf, policy=Apple, tag=Apple, enabled=true
https://raw.githubusercontent.com/Elysian-Realme/FuGfConfig/main/ConfigFile/Loon/LoonRemoteRule/Apple/AppleAPIRules.conf, policy=AppleAPI, tag=AppleAPI, enabled=true
https://raw.githubusercontent.com/Elysian-Realme/FuGfConfig/main/ConfigFile/Loon/LoonRemoteRule/Apple/AppleCDNRules.conf, policy=AppleCDN, tag=AppleCDN, enabled=true
https://raw.githubusercontent.com/Elysian-Realme/FuGfConfig/main/ConfigFile/Loon/LoonRemoteRule/GFWRules.conf, policy=PROXY, tag=FuckGFW, enabled=true
# 自定义的直连
https://raw.githubusercontent.com/Elysian-Realme/FuGfConfig/main/ConfigFile/Loon/LoonRemoteRule/DirectRules.conf, policy=DIRECT, tag=CustomDirect, enabled=true
https://raw.githubusercontent.com/Elysian-Realme/FuGfConfig/main/ConfigFile/Loon/LoonRemoteRule/BaseRules.conf, policy=DIRECT, tag=BaseRules, enabled=true
配置示例
# REJECT Rules
RULE-SET,https://raw.githubusercontent.com/Elysian-Realme/FuGfConfig/refs/heads/main/ConfigFile/Surge/FuckRogueSoftware/domain.list,REJECT,pre-matching
RULE-SET,https://raw.githubusercontent.com/Elysian-Realme/FuGfConfig/refs/heads/main/ConfigFile/Surge/FuckGarbageFeature/domain.list,REJECT,pre-matching
# Apple Update Rules
RULE-SET,https://raw.githubusercontent.com/Elysian-Realme/FuGfConfig/refs/heads/main/ConfigFile/Surge/Apple/update-domain.list,AppleUpdate
# ...
# Apple Rules
RULE-SET,https://github.com/Elysian-Realme/FuGfConfig/raw/refs/heads/main/ConfigFile/Surge/Apple/no-cn-cdn-domain.list,AppleNoChinaCDN
RULE-SET,https://github.com/Elysian-Realme/FuGfConfig/raw/refs/heads/main/ConfigFile/Surge/Apple/api-domain.list,AppleApi
RULE-SET,https://github.com/Elysian-Realme/FuGfConfig/raw/refs/heads/main/ConfigFile/Surge/Apple/cdn-domain.list,AppleCDN
RULE-SET,https://github.com/Elysian-Realme/FuGfConfig/raw/refs/heads/main/ConfigFile/Surge/Apple/domain.list,Apple
# ...
此规则对某些国内软件强屏蔽,包括但不限于广告,跟踪,数据分析
在 FuckRogueSoftware.txt 中可以看到部分屏蔽说明
# qx
https://raw.githubusercontent.com/Elysian-Realme/FuGfConfig/main/ConfigFile/QuantumultX/FuckRogueSoftwareRules.conf, force-policy=FuckRogueSoftware, tag=FuckRogueSoftware, enabled=true
# loon
https://raw.githubusercontent.com/Elysian-Realme/FuGfConfig/main/ConfigFile/Loon/LoonRemoteRule/FuckRogueSoftwareRules.conf, policy=Advertising, tag=FuckRogueSoftware, enabled=true
另外,若有屏蔽 Apple 系统更新的需求,可以引用 AppleUpdateRules
规则集
# loon
AppleUpdate = select,REJECT-DROP,DIRECT,img-url = https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Apple_Update.png
https://raw.githubusercontent.com/Elysian-Realme/FuGfConfig/main/ConfigFile/Loon/LoonRemoteRule/Apple/AppleUpdateRules.conf, policy=REJECT ,tag=AppleUpdate, enable=true
# qx
static= AppleUpdate, reject, direct, img-url = https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Apple_Update.png
https://raw.githubusercontent.com/Elysian-Realme/FuGfConfig/main/ConfigFile/QuantumultX/Apple/AppleUpdateRules.conf, force-policy=AppleUpdate, tag=AppleUpdateRules, enabled=true
请查看 iRingo 解锁完整的 Apple 功能和集成服务 仓库
建议优先采用上文仓库的规则
请参考 blog.royli.dev/2019/better-proxy-rules-for-apple-services 这篇文章
对于本项目
AppleRules 是与本地化息息相关的规则,比如地图、天气、查找、Facetime、Apple Pay ( iCloud 上传与下载也归于此规则集
AppleCDNRules 是苹果的全球 CDN
AppleNoChinaCDNRules 是大陆没有的 CDN 节点
AppleAPIRules 是苹果的 API 域名
请把 NoChinaCDN 和 APIRules 放在最前面
AppleRules 直连
AppleCDNRules 直连
AppleNoChinaCDNRules 代理
AppleAPIRules 直连
AppleRules 直连
AppleCDNRules 直连
AppleNoChinaCDNRules 代理
AppleAPIRules 代理
建议 AppleAPIRules 依然直连,上文是根据上述文章给出的建议,请结合自身情况使用
对常用的国内域名进行 DNS 解析分流,国内走国内的各大 Doh
# DNS 映射
https://raw.githubusercontent.com/Elysian-Realme/FuGfConfig/main/ConfigFile/Loon/LoonPlugin/DNSMap.plugin, tag=DNS Map, enabled=true
部分规则来自 https://gist.github.com/JamesHopbourn/b5cf9219bdacfa8b6dbb3414276c149b
在此表示感谢
# FuckDouyin
https://raw.githubusercontent.com/Elysian-Realme/FuGfConfig/main/ConfigFile/Loon/LoonPlugin/FuckDouyin.plugin, proxy=Advertising, tag=Fuck Douyin, enabled=true
可以预见的未来越来越光明啦
特此提前准备了白名单模式,随时准备敬献。
- 自动化根据规则集生成适配不同客户端的规则文件
- 去重,根据域名后缀去重
- [] 构造域名后缀树,从 HashMap 切换到域名后缀树
- [] 对大佬们的 AdGuard 规则进行去重合并
本项目的数据大部分来自一下项目,在此对他们表示感谢(以下排名不分先后
Fuck you, Gitcode.
皇后大道西又皇后大道東
皇后大道東轉皇后大道中
皇后大道東上為何無皇宮
皇后大道中人民如潮湧
有個貴族朋友在硬幣背後
青春不變名字叫做皇后
每次買賣隨我到處去奔走
面上沒有表情卻匯聚成就
知己一聲拜拜遠去這都市
要靠偉大同志搞搞新意思
照買照賣樓花處處有單位
但是旺角可能要換換名字
皇后大道西又皇后大道東
皇后大道東轉皇后大道中
皇后大道東上為何無皇宮
皇后大道中人民如潮湧
這個正義朋友面善又友善
因此批準馬匹一週跑兩天
百姓也自然要鬥快過終點
若做大國公民祇須身有錢
知己一聲拜拜遠去這都市
要靠偉大同志搞搞新意思
冷暖氣候同樣影響這都市
但是換季可能靠特異人士
8964