[
  {
    "path": "README.md",
    "content": "# Clash Rule Configuration\n\nAn optimized Clash proxy rule configuration, providing precise traffic splitting and an efficient web access experience.\n\n## 📋 Features\n\n  - **🌐 Intelligent Splitting**: Automatically identifies and splits international and domestic traffic.\n  - **🚫 Ad Blocking**: Built-in filtering rules for both domestic and international ads.\n  - **🤖 AI Services Optimization**: Specialized routing rules for AI services like OpenAI, Claude, and Gemini.\n  - **📱 App-Specific Rules**: Dedicated groups for services like YouTube, Microsoft, Google, and Apple.\n  - **🇨🇳 Mainland China Optimization**: A comprehensive whitelist for domestic Chinese websites and IPs.\n  - **🛡️ Privacy Protection**: Choose different regional nodes for WeChat to protect privacy.\n\n## 🚀 Quick Start\n\n### Supported Clients\n\n  - ✅ Clash for Windows\n  - ✅ ClashX (macOS)\n  - ✅ Clash for Android\n  - ✅ ClashX Pro\n  - ✅ Other clients that support the Clash configuration format.\n\n## 📊 Proxy Group Description\n\n### General Groups\n\n  - **🌐 International Traffic**: The default choice for all foreign websites and services.\n  - **🎯 Domestic Traffic**: For domestic Chinese websites and services, set to DIRECT by default.\n\n### Ad-Blocking Groups\n\n  - **🚫 Domestic Ads**: Blocks domestic ads, supports REJECT/DIRECT options.\n  - **🚫 International Ads**: Blocks international ads, supports REJECT/DIRECT options.\n\n### Dedicated Service Groups\n\n  - **🤖 AI Services**: OpenAI, Claude, Gemini, Anthropic, Copilot.\n  - **📹 YouTube**: Dedicated to YouTube for an optimized video playback experience.\n  - **Ⓜ️ Microsoft Services**: Microsoft, OneDrive, and other Microsoft services.\n  - **🔍 Google Services**: Google Search, Gmail, Google FCM (does not include YouTube).\n  - **🍎 Apple Services**: App Store, iCloud, Apple Music, etc.\n  - **🌍 International Media**: Netflix, TikTok, Instagram, Threads, etc.\n  - **🫧 WeChat**: Dedicated for WeChat, allowing selection of different regional nodes.\n\n## 🎯 Rule Priority\n\nRules are matched in the following order of priority (from highest to lowest):\n\n1.  **Ad-Blocking Rules** - Highest priority to block ads.\n2.  **Domestic Site Rules** - Identifies domestic Chinese websites and services.\n3.  **AI Services** - Various AI platforms and services.\n4.  **YouTube** - YouTube video services.\n5.  **Microsoft Services** - Microsoft-related services.\n6.  **Google Services** - Google-related services (excluding YouTube).\n7.  **Apple Services** - Apple ecosystem services.\n8.  **International Media** - Foreign streaming and social media.\n9.  **Other Rules** - WeChat, Telegram, etc.\n10. **Geolocation Rules** - IP-based geographical location determination.\n11. **Final Match** - Traffic that does not match any other rule.\n\n## 🔧 Custom Configuration\n\n### Modifying Proxy Groups\n\nAll proxy groups include the following options:\n\n  - 🚀 Proxy Selection\n  - ♻️ Auto Select\n  - Regional Nodes (Hong Kong, Taiwan, Singapore, Japan, USA, UK, etc.)\n  - 🚀 Manual Select\n  - DIRECT\n\n### WeChat Region Selection\n\nWeChat supports selecting different regions:\n\n  - **DIRECT** - Direct connection within Mainland China.\n  - **🇭🇰 Hong Kong** - Access Hong Kong-specific features.\n  - **🇨🇳 Taiwan** - Access Taiwan-specific features.\n  - **Other Regions** - Select as needed.\n\n## 📝 Rule Sources\n\nThis configuration uses the following high-quality rule sources:\n\n  - **ACL4SSR**: Base rules for traffic splitting.\n  - **blackmatrix7/ios\\_rule\\_script**: App-specific rules.\n  - **DivineEngine/Profiles**: Rules for the Mainland China whitelist.\n\nAll rule sources are open-source projects and are regularly updated and maintained.\n\n## 🤝 Contributing\n\nIssues and Pull Requests are welcome to improve this configuration\\!\n\n### How to Contribute\n\n1.  Fork this repository.\n2.  Create your feature branch (`git checkout -b feature/AmazingFeature`).\n3.  Commit your changes (`git commit -m 'Add some AmazingFeature'`).\n4.  Push to the branch (`git push origin feature/AmazingFeature`).\n5.  Open a Pull Request.\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](https://www.google.com/search?q=LICENSE) file for details.\n\n## ⚠️ Disclaimer\n\n  - This configuration is for learning and research purposes only.\n  - Please comply with local laws and regulations.\n  - The author assumes no responsibility for any issues that may arise from the use of this configuration.\n\n## 🙏 Acknowledgements\n\nThanks to the following projects and contributors:\n\n  - [ACL4SSR](https://github.com/ACL4SSR/ACL4SSR)\n  - [blackmatrix7/ios\\_rule\\_script](https://github.com/blackmatrix7/ios_rule_script)\n  - [DivineEngine/Profiles](https://github.com/DivineEngine/Profiles)\n\n-----\n\nIf this configuration is helpful to you, please give it a ⭐ Star to show your support!\n"
  },
  {
    "path": "rules.ini",
    "content": "[custom]\n\n;设置规则标志位\n;基础规则\nruleset=🎯 国内流量,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/LocalAreaNetwork.list\nruleset=🎯 国内流量,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/UnBan.list\n\n;去广告规则 - 优先级最高\nruleset=🚫 国内广告,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/AdvertisingLite/AdvertisingLite.list\nruleset=🚫 国外广告,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/AdGuardDNSFilter/AdGuardDNSFilter.list\n\n;国内站点规则\nruleset=🎯 国内流量,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/GoogleCN.list\nruleset=🎯 国内流量,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/SteamCN.list\nruleset=🎯 国内流量,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/ChinaDomain.list\nruleset=🎯 国内流量,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/ChinaCompanyIp.list\nruleset=🎯 国内流量,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Download.list\nruleset=🎯 国内流量,https://cdn.jsdelivr.net/gh/DivineEngine/Profiles@master/Clash/RuleSet/China.yaml\nruleset=🎯 国内流量,https://cdn.jsdelivr.net/gh/DivineEngine/Profiles@master/Clash/RuleSet/Extra/ChinaIP.yaml\n\n;AI服务规则\nruleset=🤖 AI服务,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/OpenAI/OpenAI.list\nruleset=🤖 AI服务,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Gemini/Gemini.list\nruleset=🤖 AI服务,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Claude/Claude.list\nruleset=🤖 AI服务,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Anthropic/Anthropic.list\nruleset=🤖 AI服务,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Copilot/Copilot.list\n\n;YouTube规则\nruleset=📹 YouTube,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/YouTube/YouTube.list\n\n;微软服务规则\nruleset=Ⓜ️ 微软服务,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Microsoft/Microsoft.list\nruleset=Ⓜ️ 微软服务,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/OneDrive.list\n\n;谷歌服务规则（不包含YouTube）\nruleset=🔍 谷歌服务,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Google/Google.list\nruleset=🔍 谷歌服务,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/GoogleFCM.list\n\n;Apple服务规则\nruleset=🍎 Apple服务,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Apple/Apple.list\n\n;国外媒体规则\nruleset=🌍 国外媒体,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Netflix/Netflix.list\nruleset=🌍 国外媒体,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/TikTok/TikTok.list\nruleset=🌍 国外媒体,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Instagram/Instagram.list\nruleset=🌍 国外媒体,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Threads/Threads.list\nruleset=🌍 国外媒体,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/ProxyMedia.list\n\n;国内媒体规则\nruleset=🎯 国内流量,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/BiliBili/BiliBili.list\nruleset=🎯 国内流量,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/ChinaMedia.list\nruleset=🎯 国内流量,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/NetEaseMusic.list\n\n;电报规则\nruleset=🌐 国际流量,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Telegram/Telegram.list\n\n;其他服务\nruleset=🫧 WeChat,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/WeChat/WeChat.list\nruleset=🌐 国际流量,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Speedtest/Speedtest.list\n\n;代理规则\nruleset=🌐 国际流量,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/ProxyGFWlist.list\n\n;地理位置规则\n;ruleset=🎯 国内流量,[]GEOIP,LAN\nruleset=🎯 国内流量,[]GEOIP,CN\nruleset=🌐 国际流量,[]FINAL\n;设置规则标志位\n\n;设置分组标志位\n;通用组\ncustom_proxy_group=🌐 国际流量`select`[]🚀 节点选择`[]♻️ 自动选择`[]🇭🇰 香港节点`[]🇨🇳 台湾节点`[]🇸🇬 狮城节点`[]🇯🇵 日本节点`[]🇺🇲 美国节点`[]🇬🇧 英国节点`[]🇹🇷 其他节点`[]🚀 手动切换`[]DIRECT\ncustom_proxy_group=🎯 国内流量`select`[]DIRECT`[]🚀 节点选择`[]🇭🇰 香港节点`[]🇨🇳 台湾节点\n\n;去广告组\ncustom_proxy_group=🚫 国内广告`select`[]REJECT`[]DIRECT`[]🚀 节点选择\ncustom_proxy_group=🚫 国外广告`select`[]REJECT`[]DIRECT`[]🚀 节点选择\n\n;规则组\ncustom_proxy_group=🤖 AI服务`select`[]🚀 节点选择`[]♻️ 自动选择`[]🇺🇲 美国节点`[]🇸🇬 狮城节点`[]🇯🇵 日本节点`[]🇭🇰 香港节点`[]🇨🇳 台湾节点`[]🇬🇧 英国节点`[]🇹🇷 其他节点`[]🚀 手动切换`[]DIRECT\ncustom_proxy_group=📹 YouTube`select`[]🚀 节点选择`[]♻️ 自动选择`[]🇭🇰 香港节点`[]🇯🇵 日本节点`[]🇺🇲 美国节点`[]🇸🇬 狮城节点`[]🇨🇳 台湾节点`[]🇬🇧 英国节点`[]🇹🇷 其他节点`[]🚀 手动切换`[]DIRECT\ncustom_proxy_group=Ⓜ️ 微软服务`select`[]DIRECT`[]🚀 节点选择`[]🇺🇲 美国节点`[]🇭🇰 香港节点`[]🇸🇬 狮城节点`[]🇯🇵 日本节点`[]🇨🇳 台湾节点`[]🇬🇧 英国节点`[]🚀 手动切换\ncustom_proxy_group=🔍 谷歌服务`select`[]🚀 节点选择`[]♻️ 自动选择`[]🇺🇲 美国节点`[]🇭🇰 香港节点`[]🇸🇬 狮城节点`[]🇯🇵 日本节点`[]🇨🇳 台湾节点`[]🇬🇧 英国节点`[]🇹🇷 其他节点`[]🚀 手动切换`[]DIRECT\ncustom_proxy_group=🍎 Apple服务`select`[]DIRECT`[]🚀 节点选择`[]🇺🇲 美国节点`[]🇭🇰 香港节点`[]🇸🇬 狮城节点`[]🇯🇵 日本节点`[]🇨🇳 台湾节点`[]🇬🇧 英国节点`[]🚀 手动切换\ncustom_proxy_group=🌍 国外媒体`select`[]🚀 节点选择`[]♻️ 自动选择`[]🇭🇰 香港节点`[]🇨🇳 台湾节点`[]🇸🇬 狮城节点`[]🇯🇵 日本节点`[]🇺🇲 美国节点`[]🇬🇧 英国节点`[]🇹🇷 其他节点`[]🚀 手动切换`[]DIRECT\ncustom_proxy_group=🫧 WeChat`select`[]DIRECT`[]🇭🇰 香港节点`[]🇨🇳 台湾节点`[]🇸🇬 狮城节点`[]🇯🇵 日本节点`[]🇺🇲 美国节点`[]🇬🇧 英国节点`[]🚀 节点选择`[]🚀 手动切换\n\n;节点组\ncustom_proxy_group=🚀 节点选择`select`[]♻️ 自动选择`[]🇭🇰 香港节点`[]🇨🇳 台湾节点`[]🇸🇬 狮城节点`[]🇯🇵 日本节点`[]🇺🇲 美国节点`[]🇬🇧 英国节点`[]🇹🇷 其他节点`[]🚀 手动切换`[]DIRECT\ncustom_proxy_group=🚀 手动切换`select`.*\ncustom_proxy_group=♻️ 自动选择`url-test`.*`http://www.gstatic.com/generate_204`300,,50\ncustom_proxy_group=🇭🇰 香港节点`select`(港|HK|hk|Hong Kong|HongKong|hongkong)`http://www.gstatic.com/generate_204`300,,50\ncustom_proxy_group=🇯🇵 日本节点`select`(日本|川日|东京|大阪|泉日|埼玉|沪日|深日|[^-]日|JP|Japan)`http://www.gstatic.com/generate_204`300,,50\ncustom_proxy_group=🇺🇲 美国节点`select`(美|波特兰|达拉斯|俄勒冈|凤凰城|费利蒙|硅谷|拉斯维加斯|洛杉矶|圣何塞|圣克拉拉|西雅图|芝加哥|US|United States|States)`http://www.gstatic.com/generate_204`300,,150\ncustom_proxy_group=🇨🇳 台湾节点`select`(台|新北|彰化|TW|Taiwan)`http://www.gstatic.com/generate_204`300,,50\ncustom_proxy_group=🇸🇬 狮城节点`select`(新加坡|坡|狮城|SG|Singapore)`http://www.gstatic.com/generate_204`300,,50\ncustom_proxy_group=🇬🇧 英国节点`select`(英国|英|英格兰|UK|United Kingdom)`http://www.gstatic.com/generate_204`300,,50\ncustom_proxy_group=🇹🇷 其他节点`select`^((?!🇭🇰|港|HK|Hong|🇹🇼|台|TW|Tai|🇯🇵|日|JP|Japan|🇸🇬|坡|狮城|SG|Singapore|🇰🇷|韩|KR|KOR|Korea|🇺🇸|美|US|States|American|🇬🇧|英国|英|英格兰|UK|United Kingdom).)*$`http://www.gstatic.com/generate_204`300,,50\n\n;设置分组标志位\n\nenable_rule_generator=true\noverwrite_original_rules=true\n\n;clash_rule_base=https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/GeneralClashConfig.yml\n\n;luck\n"
  }
]