$ show GMOogway/shadowrocket-rules
This repository provides curated rule lists for the Shadowrocket iOS proxy application, categorizing tens of thousands of domains and IP ranges into DIRECT (no proxy), PROXY (route through proxy), and REJECT (block) sets. The rules are distributed as Shadowrocket modules that can be loaded independently or combined to implement white-list or black-list routing strategies. The data is aggregated from multiple public sources including dnsmasq-china-list, v2fly domain list, gfwlist, adblock lists, and custom additions for services like TikTok, OpenAI, Telegram, and Google Gemini. The repository also includes a minimal configuration example and factory files that allow users to customize rule sets by appending or excluding specific entries before automated builds. There is no application code; the entire output is data files consumed by Shadowrocket. The repository relies on external CI (not visible in the file tree) to regenerate the modules daily.
The LLM identified 3 files worth highlighting for reuse:
This file demonstrates a clean pattern for extending a proxy rule list with custom domain, IP-CIDR, and user-agent entries. Each entry is preceded by a comment block explaining the syntax (DOMAIN, DOMAIN-SUFFIX, ip-cidr, etc.) and the service being added (e.g., TikTok, Telegram, OpenAI). It serves as a reusable template for anyone maintaining a similar rule set for proxy tools, allowing easy additions without modifying the core generated lists.
A minimalist exclusion file that removes specific domains (like fonts.googleapis.com) from the direct rule list. It uses a 'full:' prefix to indicate exact domain match. This pattern is reusable for maintaining override lists in any rule-based proxy system, providing a simple mechanism to subtract entries from a larger automated set.
A minimal, well-commented Shadowrocket configuration file (~30 lines) that serves as a clean starting point for users. It includes essential settings like bypass-system, skip-proxy, encrypted DNS, and a basic rule set with GeoIP direct routing. Its brevity and clear comments make it a reusable template for anyone deploying Shadowrocket with custom rules.