Last week I shared a solution for skipping splash ads using accessibility-based auto-clicking (Swipt). Many readers gave feedback. Honestly, simulated clicking still has poor experiences when facing malicious "shake-to-open" triggers and in-feed promotions after the splash screen.
https://x.com/suversal/status/2123348501866201131
Many friends also asked in the comments:
"How exactly do you set up network-layer interception and rewrite ad-blocking?"
"I have Shadowrocket, Loon, or Quantumult X. How should I configure them for ad-blocking?"
In fact, many iPhone users keep these tools installed but only use them as network proxies, wasting their most powerful killer feature.
If you want a truly ultimate, pure experience, network-layer rewriting (Rewrite / Modules) is the ultimate solution for iOS ad-blocking.
Today, I will thoroughly break down the rewrite ad-blocking methods for the three most common tools—Shadowrocket, Loon, and Quantumult X (QX). From principles and certificate trust to step-by-step tutorials for each app, I'll guide you hand-in-hand to build a stable and clean ad-free setup.
Why Is "Network Rewriting" The Ultimate Ad-Blocking Solution?
The logic of simulated clicking is: the ad has already been downloaded and rendered on the screen, and it just uses an interface to quickly press that tiny "Skip" button for you. If there is any delay, or if you encounter malicious "shake-to-open" triggers or disguised buttons, accidental clicks are still likely, and it does nothing about in-app promotions.
The logic of network-layer rewriting is completely different: it directly inspects network requests precisely during the data transmission phase.
1[App Client] <--- (HTTPS Encrypted) ---> [Shadowrocket / Loon / QX Local Decryption Inspection] <--- (HTTPS Encrypted) ---> [Target Server]
- Source Truncation: Ads Never Enter Your Phone: Once identified as an ad request, the local tool directly rejects the connection (Reject) or returns empty data (Rewrite). The App cannot get ad resources, so the splash screen doesn't even have a chance to display; you go straight to the main interface instantly.
- Not Just Splash Ads, But Also In-Feeds and Clutter: Simulated clicking can only remove splash screens and pop-ups. It is powerless against in-feed ads and promoted posts in Weibo, Zhihu, Tieba, and Bilibili. Rewrite rules can directly modify the JSON data returned by the App to strip out ad fields.
- Bonus Feature: App Enhancement and Minimalist UI: This is what makes rewriting/modules addictive. Since data can be inspected and modified, community experts have optimized anti-human designs in major Apps:
- Bottom Bar and UI Simplification: Hide bloated tabs like "Live," "Sales," and "Discover" in Zhihu, Weibo, and Bilibili, keeping only the core functions;
- Practical Function Enhancements: Unlock original/high-quality audio, save Xiaohongshu images without watermarks with one click, purify Gaode Maps' extra home cards, etc. After installing modules, the App experience is often better than the official "lite" versions.
- Silent and Seamless, No Waiting: The entire interception process happens at the network layer in milliseconds. There is no need to wait for a skip countdown on the screen, nor is there a risk of accidental jumps. Open the App, and the content is clean.
Core Foundation: Generate and Fully Trust Certificates (MitM)
90% of failed rewrite ad-blocking cases are due to certificates not being correctly trusted.
Nowadays, all App communications are HTTPS encrypted. If tools cannot decrypt traffic, they can only see domains (like api.weibo.cn) and cannot distinguish which request is a splash ad and which is normal data. To filter precisely, you must enable MitM (Man-in-the-Middle decryption).
⚠️
Address Security Concerns
:
The certificate is generated instantly on your own phone locally by your software. The private key exists only in your device's sandbox. As long as you don't import unknown certificates from others and never export/share your private key, decryption is completed entirely within your phone's closed loop, posing absolutely no privacy leakage risk.
Regardless of which tool you use, the iOS system-level certificate installation and trust process is identical across all three steps:
Step 1: Generate and Download Certificate Within the Software
- Shadowrocket: Bottom "Config" ➜ Click current config (e.g., default.conf) ➜ "Edit Config" ➜ Enable "HTTPS Decryption" ➜ Click "Generate New CA Certificate" ➜ "Install Certificate" ➜ Allow Safari download.
- Loon: Bottom "Config" ➜ "Certificate Management" ➜ Click "Generate CA Certificate" ➜ Click "Install CA Certificate" ➜ Allow Safari download.
- Quantumult X: Bottom-right windmill settings ➜ Scroll to MitM section ➜ Click "Generate Certificate" ➜ Click "Configure Certificate" ➜ Allow Safari download.
Step 2: Install Profile in iOS Settings
- Exit the software, open iPhone's native 「Settings」;
- Below your personal avatar at the top, 「Downloaded Profile」 will appear (if not shown, go to "General" ➜ "VPN & Device Management");
- Tap it, click 「Install」 in the top right, enter lock screen password, and confirm through prompts.
Step 3: Fully Trust Root Certificate in About (Most Critical! Do Not Miss)
⚠️
Common Pitfall for Beginners
: Installing the profile alone is completely ineffective! You must manually grant full trust permission, otherwise all rewrite ad-blocking will fail.
- Open iPhone 「Settings」 ➜ 「General」 ➜ 「About」;
- Scroll to the very bottom and tap 「Certificate Trust Settings」;
- In the "Enable Full Trust For Root Certificates" list, find the newly installed certificate name (e.g., Shadowrocket, Loon, or Quantumult X);
- Toggle the switch on (turn green), and click 「Continue」 in the root certificate security warning popup.

You must toggle the switch green in "Certificate Trust Settings" to enable full trust
After establishing the underlying decryption environment, proceed to specific ad-blocking configurations for each software.
Tutorial 1: Shadowrocket Module Ad-Blocking
Shadowrocket currently has the highest user base and lowest barrier to entry. With the introduction of "Modules," ad-blocking has become as simple as installing mini-programs. (For more Shadowrocket tips, I posted a discussion on 𝕏 titled: "Using Shadowrocket Only for Proxying? You're Using It Wrong")
https://x.com/suversal/status/2102948368351895821
One-Step Setup (Recommended):
Step 1: Confirm HTTPS Decryption is Enabled
- Open Shadowrocket, click the 「Config」 tab in the bottom navigation bar;
- In the "Configuration Files" list, find the checked config (default is default.conf), click it, and select 「Edit Config」 from the bottom menu;
- Scroll down to the "HTTPS Decryption" group and ensure the 「HTTPS Decryption」 switch is ON. (If you haven't generated/installed the certificate yet, click "Generate New CA Certificate" here and follow the universal three-step method above).
Step 2: Add Ad-Blocking Config and Modules
Taking Mo Yu (ddgksf2013)'s configuration as an example:

1. Import Base Ad-Blocking Configuration File
Config ➜ Click + in top right ➜ Paste Mo Yu's complete Shadowrocket config link to download:
1https://ddgksf2013.top/Profile/Shadowrocket.conf
2. Add Mo Yu's Shadowrocket Pre-module:
Return to the "Config" page, scroll down to 「Modules」 ➜ Click + in top right ➜ Paste Mo Yu's pre-module link and save:
1 https://ddgksf2013.top/module/ScriptHub.Rocket.sgmodule2
3. One-Click Import Mo Yu's Splash Ad Blocker 2.0 and Other Enhancement Modules from Website:
Mo Yu's homepage provides specialized enhancement configs for major apps like Zhihu, Weibo, Bilibili, and Gaode. After adding the pre-module above, visit Mo Yu's homepage and click modules as needed to launch Shadowrocket for installation: https://ddgksf2013.top
Note: For one-click import, ensure the pre-module is installed and Shadowrocket proxy is enabled. The page will then change to Shadowrocket.


One-click import of ad-blocking and enhancement modules for various apps from Mo Yu's homepage
Step 3: Enable Modules and Start in "Config" Mode
- In the "Modules" list, ensure the added ad-blocking modules are checked/enabled;
- Return to Shadowrocket home, find "Global Routing" in the middle, click to switch to 「Config」 mode (Remember: Do NOT choose "Global Routing" or "Direct." Only in "Config" mode will Shadowrocket route by rules and execute module rewrites);
- Turn on the main connection switch at the top.

Confirm modules are checked, set Global Routing to "Config," then turn on the main switch
Video demo for specific Shadowrocket configuration steps:
https://x.com/suversal/status/2126238359345561919
More Configs and Advanced Recommendations:
- Tutorials and Docs:
- yfamilys Shadowrocket Module & Config Tutorial
- yfamilys Shadowrocket Rules & Module Repo
- Mo Yu Notes Homepage / Mo Yu GitHub Repo
- High-Quality Open Source Ad-Blocking Rule Sets:
- blackmatrix7/ios_rule_script (Covers routing and ad-blocking libraries for common services)
- Johnshall/Shadowrocket-ADBlock-Rules-Forever (Long-term ad-blocking rules)
- LOWERTOP/Shadowrocket-First
- iab0x00/ProxyRules
- Function & App Enhancements: Import rule sets to route ChatGPT/Claude via US regions, streaming via corresponding regions, domestic direct connect; add JD price comparison, YouTube enhancements, App Store free reminder, and overseas App push fix modules as needed.
Tutorial 2: Loon Modern Config & Plugin Ad-Blocking
If Shadowrocket wins on popularity, Loon is the smoothest tool in terms of modularity and ease of use. Loon's "Plugin" mechanism is extremely elegant, with intuitive UI, and ad-blocking rules for each app are completely decoupled. (For advanced Loon tips, I posted a discussion on 𝕏 titled: "Loon Treasure Repositories & Advanced Config Guide")
https://x.com/suversal/status/2103390757528940986
In the Loon ecosystem, the famous community expert Kelee has organized everything from "base configs" to "app plugins," so beginners don't need to start from scratch.
One-Step Setup (Recommended):
Step 1: Check Certificate Status
Open Loon ➜ Bottom "Config" ➜ "Certificate Management," confirm the local CA certificate has been generated, installed, and fully trusted per the previous steps.
Step 2: Import Config Templates (Copy Homework as Needed)
Many beginners find Loon's interface empty upon first install, unsure how to set routing, policy groups, and work modes. Kelee has prepared multiple ready-made config templates for different scenarios in the ProxyResource repo:
- Beginner / Auto Node Selection / Manual Node Selection: Suitable for daily main proxy + ad-blocking;
- Advanced Full Version: Richer policy groups, supports complex node routing;
- No-Proxy Ad-Blocking Config: If you don't need proxying normally and just want to use Loon as a pure "local ad-blocker," Kelee provides a dedicated clean version!
💡
Operation & Backup Tip
:
Before importing new configs, recommend clicking Config ➜ Export ➜ Save to "Files" to backup existing config.
Import Method: Go to Loon's 「Config」 page ➜ Click top config name ➜ Select 「Download from URL」 ➜ Paste Raw link from Kelee's repo and confirm import. Then add your own node subscriptions.
Detailed comparison of configs available here: Kelee Loon Config Documentation .

Select corresponding Loon preset config template based on usage scenario
Step 3: One-Click Add Ad-Blocking Plugins
Once the base config is done, the main event is installing plugins. Directly open Kelee's Loon Plugin Center ([https://hub.kelee.one"](https://hub.kelee.one)), experiencing it like browsing the "Loon App Store":
- Method A: Web One-Click Import (Most Recommended, Simplest)
- Open Kelee Plugin Center in iPhone Safari (https://hub.kelee.one);
- First install prerequisite plugins "HTTPDNS Interceptor" and "Ad Platform Interceptor"
- Find the "Ad Blocking" category, where plugins for Taobao, JD, Pinduoduo, Zhihu, Weibo, Bilibili, Gaode Maps, WeChat Official Accounts, Xiaohongshu, 12306, etc., are organized by app;
- Find the app plugin you want, click the 「Install」 button on the right;
- System automatically launches Loon and prompts installation. Click save to complete (Loon automatically pulls plugins and merges MitM domains, no manual config needed).
- Method B: Manual URL Subscription
If you have a .plugin link, click Loon bottom "Plugins" ➜ Click + in top right ➜ Select "Add from URL" and paste/save.
Step 4: Independent Plugin Management & Start Service
- After adding, plugins appear as clear cards in the list;
- Ensure the switch on the right side of each plugin card is ON;
💡
Loon's Core Advantage
: Each app's ad-blocking is independent. If an App updates and breaks rules, you just turn off that specific App's plugin; other apps remain unaffected.
- Return to Loon home, click the big circle main switch to start proxy service.

Independent switch management in plugin list, return to home and turn on main switch to activate
More Configs and Advanced Recommendations:
- ① Kelee Telegram Channel / Resource Nav: https://t.me/ibilibili/1443
- ② Kelee GitHub Resource Repo: https://github.com/luestr/ProxyResource
- ③ Kelee Loon Config Chinese Instructions: View Detailed Docs
- ④ Loon Plugin Center: https://hub.kelee.one
- ⑤ Loon Official Docs: https://nsloon.app/docs/intro
- ⑥ More Enhancements: Sub-Store node management, check-in scripts, node detection tools.
Tutorial 3: Quantumult X (QX) Rewrite & Ad-Blocking Config
Personally, I've deeply tinkered with all three tools, but my daily driver remains QX. (For QX toolbox positioning and config, I posted a discussion on 𝕏 titled: "On QX Toolbox Positioning & Configuration")
https://x.com/suversal/status/2104082565170954267
If just used for proxying, all three are sufficient. What makes me prefer QX is that it feels more like a low-level network toolbox:
- Nodes, policy groups, routing, Rewrite, MitM, Script, plus HTTP request capture and logs—all observation, modification, and debugging of traffic can be closed-loop in one App;
- Clear architecture: Nodes and routing are decoupled; changing providers doesn't affect routing, adding AI rules doesn't affect nodes;
- If ads aren't blocked, you can directly check request logs to troubleshoot (View Request ➜ Find Interface ➜ Add Rule/Rewrite ➜ Check Logs ➜ Verify);
- After 24-hour constant use, QX performs excellently in stability and battery consumption.
For QX, ad-blocking offers two methods: Lazy One-Click Daily Config (Most Recommended) and Veteran Manual Incremental Rewrite Subscription.
Method A (Strongly Recommended): One-Click Import Daily Config (QX-Config-Sync)
This is a QX automation config scheme I use and maintain open-source on GitHub: QX-Config-Sync.
- Project Open Source Address: https://github.com/suversal/qx-config-sync
- Hosted Config Direct Link:
1https://raw.githubusercontent.com/suversal/qx-config-sync/main/MyQuantumultX_Local.conf2
💡
Core Advantages
:
1.
Out-of-the-Box
: Base package integrates splash ad blocking, Weibo, Bilibili, Tieba, Zhihu, NetEase Cloud Music high-frequency Rewrite rules, plus Gemini, GitHub, streaming mainstream routing strategies.
2.
Daily Silent Auto-Update
: Relies on GitHub Actions to automatically execute every morning Beijing time: Pull latest base ➜ Sync upstream expert rules ➜ Generate latest config ➜ Detect changes and auto-commit. Import once, never worry about rule updates again.
3.
Supports Geek Private Deployment
: Advanced users can Fork the project to their own GitHub, maintaining only their incremental config file; scripts automatically merge streams.
One-Click Import Steps:
⚠️
Note
: Existing users MUST backup original config before importing! Importing full config replaces existing routing and policy groups.
- Open Quantumult X ➜ Click bottom-right windmill "Settings" ➜ Scroll to bottom to find 「Configuration Files」;
- Select 「Download Config」, paste the hosted direct link above and confirm download/import;
(If GitHub Raw access is restricted in China, download config locally first, then select "Import Config")
- Follow Step 1 above to generate and fully trust MitM certificate;
- Ensure 「Rewrite」 and 「MitM」 master switches are lit in QX settings;
- Add your own node subscription, return to home and turn on top-right master switch!

Download imported hosted config in Configuration Files, ensure Rewrite and MitM switches are lit
Method B: Veteran Manual Incremental Rewrite Subscription
If you already have your own QX policy groups and node routing and don't want to overwrite existing config, just mount ad-blocking rewrite rules separately:
Step 1: Enable Rewrite and MitM
- Open QX ➜ Bottom-right windmill settings ➜ Light up "Rewrite" and "MitM" master switches;
- Ensure local certificate full trust is completed per previous steps.
Step 2: Subscribe to Ad-Blocking Rule Resources (Rewrite Remote)
- In windmill settings, find 「Rule Resources」 under "Rewrite," click + in top right;
- Fill in remark name (e.g., "Weibo Ad Block" or "Zhihu Purifier");
- In resource path, fill in QX rewrite rules maintained by community experts (.snippet format):
- Mo Yu QX Rule Repo: https://github.com/ddgksf2013/Rewrite
- Poison Milk Ad-Blocking & Purification Rules (Adblock4limbo): https://github.com/limbopro/Adblock4limbo
- Save, update rules, ensure successful pull;
Step 3: Add Ad-Blocking Filter Rules (Filter Remote, Optional)
- In windmill settings, find "Routing" -> "Rule Resources," click + in top right;
- Subscribe to community ad domain filter rule sets (e.g., blackmatrix7's ad routing: https://github.com/blackmatrix7/ios_rule_script), specify action as `REJECT`
- Swipe left on rule and click "Update."
Step 4: Home Status Verification & Start
Return to QX main page, long-press bottom-right windmill icon to verify MitM and Rewrite are active, turn on top-right master switch.
More Configs and Advanced Recommendations:
- QX Common Repo Recommendations:
- ① suversal/QX-Config-Sync: My daily QX config automation sync scheme, auto-pulls upstream rule updates daily.
- ② ddgksf2013/Rewrite: Expert Mo Yu's comprehensive rules, Rewrite, and script resources (Mo Yu Notes Homepage).
- ③ limbopro/Adblock4limbo: Expert Poison Milk's ad-blocking and web purification rule library; focus on the 'rule' directory for ad-blocking.
- ④ blackmatrix7/ios_rule_script: Ultra-comprehensive routing rule library covering AI, streaming, Apple, Telegram, etc.
- Ready-Made Configs & Templates:
- ① KOP-XIAO Demo Config & Instructions: Complete demo config, good for learning QX structure.
- ② ddgksf2013 QX Config
- Learning & Docs:
- ① Parser Author's Incomplete QX Tutorial: Good for systematically understanding QX basics, config methods, and common usage.
- ② Quantumult X Wiki Book: Community Wiki for querying features and parameters.
- ③ QX Author Official GitHub Sample Docs: For users starting to write configs, refer to author's complete sample.
Troubleshooting Guide: Why Are There Still Ads After Configuration?
Don't panic if issues arise. 95%+ of non-effective ad-blocking cases can be resolved by checking these 4 points:
1. Local Cached Ads (Most Common Cause!)
Domestic Apps are cunning: Today's splash ads were actually pre-loaded and saved locally yesterday! This means even if your rules block all subsequent network requests, the App displays cached ads.
- Resolution Trilogy:
- Double-tap and swipe up to kill the App background;
- Cold start reopen the App, close it, repeat 2-3 times (quickly exhaust expired cached assets);
- If still present, go to App settings and "Clear Cache," or uninstall and reinstall. Once successfully intercepted on fresh install first launch, no new ad caches will be generated.
2. Certificate "Full Trust" Not Enabled
Reiterate: Installing the profile isn't enough. Go to Settings ➜ General ➜ About ➜ Bottom "Certificate Trust Settings" and check if the green switch is ON.
3. Will Banking, Payment, and Government Apps Be Affected?
Many worry: "With HTTPS decryption on, will my bank, WeChat Pay, and tax Apps fail?"
- Mature modules/configs maintained by experts already exclude sensitive financial, government, and payment domains from MitM whitelists by default, so they are never decrypted.
- If occasional strict local bank Apps report network errors, just add the domain to the tool's MitM exclusion list or set "Direct" routing for it.
4. Does Ad-Blocking Drain Battery or Slow Speed?
Answer: It saves battery and data. Rewrite scripts run natively (JavaScriptCore), taking 2-5ms. Conversely, blocking multi-megabyte HD splash images/videos saves mobile data and reduces CPU load/battery drain from loading useless assets.
Final Thoughts
That covers the ad-blocking logic and one-step setup for the three mainstream tools. Summary of characteristics and paths:

Compared to superficial simulated clicking, network-layer rewrite ad-blocking is the most ultimate and thorough solution for iOS experience.
No waiting for skip countdowns, no shake-to-open accidents. It blocks all ad requests at the source, wiping out in-feed marketing clutter too. Spend 10-20 minutes setting this up to reclaim a pure, clean phone experience.
Special thanks to open-source community experts Mo Yu, Kelee, blackmatrix7, etc., for their long-term selfless maintenance 🙏 Without their groundwork, we wouldn't have such a mature, comfortable ad-blocking ecosystem.
Thanks for reading. If this helped, please like, save, and share. If you face config issues or have treasure module recommendations, comment below. See you next article!





