An optimized Clash proxy rule configuration, providing precise traffic splitting and an efficient web access experience.
- π Intelligent Splitting: Automatically identifies and splits international and domestic traffic.
- π« Ad Blocking: Built-in filtering rules for both domestic and international ads.
- π€ AI Services Optimization: Specialized routing rules for AI services like OpenAI, Claude, and Gemini.
- π± App-Specific Rules: Dedicated groups for services like YouTube, Microsoft, Google, and Apple.
- π¨π³ Mainland China Optimization: A comprehensive whitelist for domestic Chinese websites and IPs.
- π‘οΈ Privacy Protection: Choose different regional nodes for WeChat to protect privacy.
- β Clash for Windows
- β ClashX (macOS)
- β Clash for Android
- β ClashX Pro
- β Other clients that support the Clash configuration format.
- π International Traffic: The default choice for all foreign websites and services.
- π― Domestic Traffic: For domestic Chinese websites and services, set to DIRECT by default.
- π« Domestic Ads: Blocks domestic ads, supports REJECT/DIRECT options.
- π« International Ads: Blocks international ads, supports REJECT/DIRECT options.
- π€ AI Services: OpenAI, Claude, Gemini, Anthropic, Copilot.
- πΉ YouTube: Dedicated to YouTube for an optimized video playback experience.
βοΈ Microsoft Services: Microsoft, OneDrive, and other Microsoft services.- π Google Services: Google Search, Gmail, Google FCM (does not include YouTube).
- π Apple Services: App Store, iCloud, Apple Music, etc.
- π International Media: Netflix, TikTok, Instagram, Threads, etc.
- π«§ WeChat: Dedicated for WeChat, allowing selection of different regional nodes.
Rules are matched in the following order of priority (from highest to lowest):
- Ad-Blocking Rules - Highest priority to block ads.
- Domestic Site Rules - Identifies domestic Chinese websites and services.
- AI Services - Various AI platforms and services.
- YouTube - YouTube video services.
- Microsoft Services - Microsoft-related services.
- Google Services - Google-related services (excluding YouTube).
- Apple Services - Apple ecosystem services.
- International Media - Foreign streaming and social media.
- Other Rules - WeChat, Telegram, etc.
- Geolocation Rules - IP-based geographical location determination.
- Final Match - Traffic that does not match any other rule.
All proxy groups include the following options:
- π Proxy Selection
- β»οΈ Auto Select
- Regional Nodes (Hong Kong, Taiwan, Singapore, Japan, USA, UK, etc.)
- π Manual Select
- DIRECT
WeChat supports selecting different regions:
- DIRECT - Direct connection within Mainland China.
- ππ° Hong Kong - Access Hong Kong-specific features.
- π¨π³ Taiwan - Access Taiwan-specific features.
- Other Regions - Select as needed.
This configuration uses the following high-quality rule sources:
- ACL4SSR: Base rules for traffic splitting.
- blackmatrix7/ios_rule_script: App-specific rules.
- DivineEngine/Profiles: Rules for the Mainland China whitelist.
All rule sources are open-source projects and are regularly updated and maintained.
Issues and Pull Requests are welcome to improve this configuration!
- Fork this repository.
- Create your feature branch (
git checkout -b feature/AmazingFeature). - Commit your changes (
git commit -m 'Add some AmazingFeature'). - Push to the branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- This configuration is for learning and research purposes only.
- Please comply with local laws and regulations.
- The author assumes no responsibility for any issues that may arise from the use of this configuration.
Thanks to the following projects and contributors:
If this configuration is helpful to you, please give it a β Star to show your support!