Most people who install Shadowrocket want the same two things first: kill the ads, and have domestic and overseas sites routed separately and automatically. You don’t need to write code — just follow the steps below.
1. Block the ads first
Three ways, from easiest to most precise:
- Subscribe to a ready-made ad-blocking rule set: 神机 (lhie1) and 墨鱼 (blackmatrix7) both include strong ad-blocking. Bottom “Config” → “+” → paste the
.conflink → Use. - Advanced cleanup (skip splash ads): plain blocking can leave pages blank; to skip app splash ads and trim pop-ups, use a
.sgmodulead-blocking module (search GitHub for “Shadowrocket module adblock”). Bottom “Modules” → “+” → paste the link → enable. Requires MitM on and the certificate trusted. - Block a single ad domain by hand:
DOMAIN-SUFFIX,doubleclick.net,REJECT DOMAIN-KEYWORD,adservice,REJECTTip: use
REJECT-DROPinstead ofREJECTto save battery and data.
2. Smart domestic / overseas routing
The core is really just two rules, placed under [Rule]:
GEOIP,CN,DIRECT # domestic sites/apps connect directly, no detour
FINAL,PROXY # everything else goes through the proxyAdd as needed:
DOMAIN-SUFFIX,netflix.com,PROXY # streaming via proxy
IP-CIDR,192.168.0.0/16,DIRECT # LAN directShadowrocket matches top-down and stops on the first hit, so put ad-blocking and exact rules at the top.
3. Don’t let the settings trip you up
- Global Routing must be set to “Config” — pick the wrong one (Proxy / Direct) and all your rules stop working. This is the most common beginner mistake.
- Enable GeoIP auto-update so the domestic-IP database stays current and domestic apps stay fast and direct.
- Enable DNS protection (DNS override / local mapping), otherwise rules can mysteriously stop working.
4. Your rules still need a working subscription
Shadowrocket is just a client — it decides “how to route”, but what actually carries your traffic is the subscription (nodes). An unstable subscription means even great rules run on nothing.
If you don’t have a stable subscription yet, SSRocket provides a mainland-reachable subscription link + one-tap import: after payment your config is emailed automatically — one tap imports it into Shadowrocket, and with the rules above you’re ready to go, no manual node setup.
FAQ
- I set my rules but nothing works? Most likely Global Routing isn’t set to “Config”.
- Some pages won’t open after ad-blocking? Plain blocking caught too much — use an ad-blocking module for precise cleanup.
- Domestic apps feel slow? Make sure
GEOIP,CN,DIRECTis active — domestic traffic is fastest going direct.