Русская версия | English
This project generates rules for Clash Premium based on domain lists from OpenCCK. Automatic builds occur daily at 21:00 UTC using GitHub Actions.
Use these URLs in your Clash configuration in the rule-providers section:
-
Adult Content Sites (porno.txt):
https://raw.githubusercontent.com/nellimonix/ClashXRule/release/porno.txthttps://cdn.jsdelivr.net/gh/nellimonix/ClashXRule@release/porno.txt
-
Discord (discord.txt):
https://raw.githubusercontent.com/nellimonix/ClashXRule/release/discord.txthttps://cdn.jsdelivr.net/gh/nellimonix/ClashXRule@release/discord.txt
-
YouTube (youtube.txt):
https://raw.githubusercontent.com/nellimonix/ClashXRule/release/youtube.txthttps://cdn.jsdelivr.net/gh/nellimonix/ClashXRule@release/youtube.txt
-
Social Networks (socials.txt):
https://raw.githubusercontent.com/nellimonix/ClashXRule/release/socials.txthttps://cdn.jsdelivr.net/gh/nellimonix/ClashXRule@release/socials.txt
-
Torrent Sites (torrent.txt):
https://raw.githubusercontent.com/nellimonix/ClashXRule/release/torrent.txthttps://cdn.jsdelivr.net/gh/nellimonix/ClashXRule@release/torrent.txt
-
Developer Tools (tools.txt):
https://raw.githubusercontent.com/nellimonix/ClashXRule/release/tools.txthttps://cdn.jsdelivr.net/gh/nellimonix/ClashXRule@release/tools.txt
-
Music Services (music.txt):
https://raw.githubusercontent.com/nellimonix/ClashXRule/release/music.txthttps://cdn.jsdelivr.net/gh/nellimonix/ClashXRule@release/music.txt
-
Roblox (roblox.txt):
https://raw.githubusercontent.com/nellimonix/ClashXRule/release/roblox.txthttps://cdn.jsdelivr.net/gh/nellimonix/ClashXRule@release/roblox.txt
rule-providers:
porno:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/nellimonix/ClashXRule@release/porno.txt"
path: ./ruleset/porno.yaml
interval: 86400
discord:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/nellimonix/ClashXRule@release/discord.txt"
path: ./ruleset/discord.yaml
interval: 86400
youtube:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/nellimonix/ClashXRule@release/youtube.txt"
path: ./ruleset/youtube.yaml
interval: 86400
socials:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/nellimonix/ClashXRule@release/socials.txt"
path: ./ruleset/socials.yaml
interval: 86400
torrent:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/nellimonix/ClashXRule@release/torrent.txt"
path: ./ruleset/torrent.yaml
interval: 86400
tools:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/nellimonix/ClashXRule@release/tools.txt"
path: ./ruleset/tools.yaml
interval: 86400
music:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/nellimonix/ClashXRule@release/music.txt"
path: ./ruleset/music.yaml
interval: 86400rules:
# Block adult content
- RULE-SET,porno,REJECT
# Route social networks and messengers through proxy
- RULE-SET,discord,PROXY
- RULE-SET,socials,PROXY
- RULE-SET,youtube,PROXY
# Block torrents
- RULE-SET,torrent,REJECT
# Allow developer tools directly
- RULE-SET,tools,DIRECT
# Route music services through proxy
- RULE-SET,music,PROXY
# Default route
- MATCH,DIRECTIf you're in a region with internet restrictions and want to bypass them:
rules:
# Bypass restrictions through proxy
- RULE-SET,discord,PROXY
- RULE-SET,socials,PROXY
- RULE-SET,youtube,PROXY
- RULE-SET,music,PROXY
- RULE-SET,tools,PROXY
# Optional: block torrents to save bandwidth
- RULE-SET,torrent,REJECT
# Optional: block adult content
- RULE-SET,porno,REJECT
# Default direct connection
- MATCH,DIRECTrules:
# Block inappropriate content
- RULE-SET,porno,REJECT
- RULE-SET,torrent,REJECT
# Allow educational and work tools
- RULE-SET,tools,DIRECT
# Control social media access (can be set to REJECT if needed)
- RULE-SET,discord,PROXY
- RULE-SET,socials,PROXY
- RULE-SET,youtube,PROXY
- RULE-SET,music,PROXY
# Default route
- MATCH,DIRECTAll rules are generated based on domain lists from OpenCCK:
- Adult Content: https://iplist.opencck.org/?format=text&data=domains&group=porn
- Discord: https://iplist.opencck.org/?format=text&data=domains&group=discord
- YouTube: https://iplist.opencck.org/?format=text&data=domains&group=youtube
- Social Networks: https://iplist.opencck.org/?format=text&data=domains&group=socials
- Torrent Sites: https://iplist.opencck.org/?format=text&data=domains&group=torrent
- Developer Tools: https://iplist.opencck.org/?format=text&data=domains&group=tools
- Music Services: https://iplist.opencck.org/?format=text&data=domains&group=music
- Create a new repository on GitHub
- Copy files from this project
- Replace
nellimonix/ClashXRulein README with actual values - Enable GitHub Actions in repository settings
- Run the workflow manually or wait for automatic execution
- Daily Updates: Automatic rule generation every day at 06:00 UTC
- Multiple Categories: 7 different rule categories for flexible traffic management
- CDN Support: Files available through both GitHub raw URLs and jsDelivr CDN
- Wildcard Support: Proper handling of domain wildcards for comprehensive coverage
- Clash Premium Compatible: Optimized for Clash Premium core
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
- OpenCCK for providing comprehensive domain lists
- Loyalsoldier/clash-rules for inspiration and project structure
- The open-source community for continuous improvements