# 小火箭设置分流规则

参照：<https://github.com/Johnshall/Shadowrocket-ADBlock-Rules-Forever><br>

## **一、打开小火箭 底栏切换到**<mark style="color:red;">**配置**</mark>&#x20;

## **左上角点击扫描二维码 / 右上角手动输入链接**

![](/files/z7UK0oJFbSBbfVaqVSHU)

<br>

## 二、规则列表（小白建议直接选择<mark style="color:red;">懒人配置</mark>）

<figure><img src="/files/PN7gkMdR0Y7wXUccjTFi" alt=""><figcaption></figcaption></figure>

| 规则                                                   | 规定代理的网站（走梯子）   | 规定直连的网站（不走梯子）         |
| ---------------------------------------------------- | -------------- | --------------------- |
| [黑名单规则 + 去广告](#id-1.-hei-ming-dan-guol--guang-gao)   | 被墙的网站（GFWList） | 正常的网站                 |
| [黑名单过滤](#id-3.-hei-ming-dan-guo-l)                   |                |                       |
| [白名单规则 + 去广告](#id-2.-bai-ming-dan-guol--guang-gao)   | 其他网站           | top500 网站中可直连的网站、中国网站 |
| [白名单规则](#id-4.-bai-ming-dan-guo-l)                   |                |                       |
| [国内外划分 + 去广告](#id-5.-guo-nei-wai-hua-fen--guang-gao) | 国外网站           | 中国网站                  |
| [国内外划分](#id-6.-guo-nei-wai-hua-fen)                  |                |                       |
| [全局直连 + 去广告](#id-7.-zhi-lian-qu-guang-gao)           | /              | 全部                    |
| [全局代理 + 去广告](#id-8.-jin-qu-guang-gao-gui-ze)         | 全部             | /                     |
| [仅去广告规则](#id-8.-jin-qu-guang-gao-gui-ze)             |                |                       |
| [懒人配置](#id-9.-lan-ren-pei-zhi)                       | 国外网站           | 国内网站                  |
| [懒人配置（含策略组）](#id-10.-lan-ren-pei-zhi-han-ce-le-zu)   | 国外网站           | 国内网站                  |

## 1.黑名单过滤 + 广告

黑名单中包含了境外网站中无法访问的那些，对不确定的网站则默认直连。

* 代理：被墙的网站（GFWList）
* 直连：正常的网站
* 包含广告过滤

规则地址：<https://johnshall.github.io/Shadowrocket-ADBlock-Rules-Forever/sr_top500_banlist_ad.conf>

[![二维码](https://camo.githubusercontent.com/29d5e3adaa21b5b626a27e37b5feb40c981babbf2e260db6eb9dc349a84060f3/68747470733a2f2f6a6f686e7368616c6c2e6769746875622e696f2f536861646f77726f636b65742d4144426c6f636b2d52756c65732d466f72657665722f6669677572652f73725f746f703530305f62616e6c6973745f61642e706e67)](https://camo.githubusercontent.com/29d5e3adaa21b5b626a27e37b5feb40c981babbf2e260db6eb9dc349a84060f3/68747470733a2f2f6a6f686e7368616c6c2e6769746875622e696f2f536861646f77726f636b65742d4144426c6f636b2d52756c65732d466f72657665722f6669677572652f73725f746f703530305f62616e6c6973745f61642e706e67)

## 2.白名单过滤 + 广告

白名单中包含了境外网站中可以访问的那些，对不确定的网站则默认代理。

* 直连：top500 网站中可直连的境外网站、中国网站
* 代理：默认代理其余的所有境外网站
* 包含广告过滤

规则地址：<https://johnshall.github.io/Shadowrocket-ADBlock-Rules-Forever/sr_top500_whitelist_ad.conf>

[![二维码](https://camo.githubusercontent.com/5708a6d2840022c86941cc35e443775f2ae601032013f55a3fcab8bdef5d74a7/68747470733a2f2f6a6f686e7368616c6c2e6769746875622e696f2f536861646f77726f636b65742d4144426c6f636b2d52756c65732d466f72657665722f6669677572652f73725f746f703530305f77686974656c6973745f61642e706e67)](https://camo.githubusercontent.com/5708a6d2840022c86941cc35e443775f2ae601032013f55a3fcab8bdef5d74a7/68747470733a2f2f6a6f686e7368616c6c2e6769746875622e696f2f536861646f77726f636b65742d4144426c6f636b2d52756c65732d466f72657665722f6669677572652f73725f746f703530305f77686974656c6973745f61642e706e67)

## 3.黑名单过滤

现在很多浏览器都自带了广告过滤功能，而广告过滤的规则其实较为臃肿，如果你不需要全局地过滤 App 内置广告和视频广告，可以选择这个不带广告过滤的版本。

* 代理：被墙的网站（GFWList）
* 直连：正常的网站
* 不包含广告过滤

规则地址：<https://johnshall.github.io/Shadowrocket-ADBlock-Rules-Forever/sr_top500_banlist.conf>

[![二维码](https://camo.githubusercontent.com/34077a5d7ee3d5f2b0a2703da1be93091b9c0ba4040532294b11eae73d9e5b38/68747470733a2f2f6a6f686e7368616c6c2e6769746875622e696f2f536861646f77726f636b65742d4144426c6f636b2d52756c65732d466f72657665722f6669677572652f73725f746f703530305f62616e6c6973742e706e67)](https://camo.githubusercontent.com/34077a5d7ee3d5f2b0a2703da1be93091b9c0ba4040532294b11eae73d9e5b38/68747470733a2f2f6a6f686e7368616c6c2e6769746875622e696f2f536861646f77726f636b65742d4144426c6f636b2d52756c65732d466f72657665722f6669677572652f73725f746f703530305f62616e6c6973742e706e67)

## 4.白名单过滤

现在很多浏览器都自带了广告过滤功能，而广告过滤的规则其实较为臃肿，如果你不需要全局地过滤 App 内置广告和视频广告，可以选择这个不带广告过滤的版本。

* 直连：top500 网站中可直连的境外网站、中国网站
* 代理：默认代理其余的所有境外网站
* 不包含广告过滤

规则地址：<https://johnshall.github.io/Shadowrocket-ADBlock-Rules-Forever/sr_top500_whitelist.conf>

[![二维码](https://camo.githubusercontent.com/cc0337e3f7c2fc29607695a467f5a43ee51e15d0e5bb1c624e5b41153f3dc901/68747470733a2f2f6a6f686e7368616c6c2e6769746875622e696f2f536861646f77726f636b65742d4144426c6f636b2d52756c65732d466f72657665722f6669677572652f73725f746f703530305f77686974656c6973742e706e67)](https://camo.githubusercontent.com/cc0337e3f7c2fc29607695a467f5a43ee51e15d0e5bb1c624e5b41153f3dc901/68747470733a2f2f6a6f686e7368616c6c2e6769746875622e696f2f536861646f77726f636b65742d4144426c6f636b2d52756c65732d466f72657665722f6669677572652f73725f746f703530305f77686974656c6973742e706e67)

## 5.国内外划分 + 广告

国内外划分，对中国网站直连，外国网站代理。包含广告过滤。国外网站总是走代理，对于某些港澳台网站，速度反而会比直连更快。

规则地址：<https://johnshall.github.io/Shadowrocket-ADBlock-Rules-Forever/sr_cnip_ad.conf>

[![二维码](https://camo.githubusercontent.com/7c69229aebab305d8a175585dceaec2d1c8698a9129d443cd2310daccfead1ee/68747470733a2f2f6a6f686e7368616c6c2e6769746875622e696f2f536861646f77726f636b65742d4144426c6f636b2d52756c65732d466f72657665722f6669677572652f73725f636e69705f61642e706e67)](https://camo.githubusercontent.com/7c69229aebab305d8a175585dceaec2d1c8698a9129d443cd2310daccfead1ee/68747470733a2f2f6a6f686e7368616c6c2e6769746875622e696f2f536861646f77726f636b65742d4144426c6f636b2d52756c65732d466f72657665722f6669677572652f73725f636e69705f61642e706e67)

## 6.国内外划分

国内外划分，对中国网站直连，外国网站代理。不包含广告过滤。国外网站总是走代理，对于某些港澳台网站，速度反而会比直连更快。

规则地址：<https://johnshall.github.io/Shadowrocket-ADBlock-Rules-Forever/sr_cnip.conf>

[![二维码](https://camo.githubusercontent.com/bf731b5a4840bb5fb1e6ad0b9b34e41d89009cf9fea005cea9619afd738d528a/68747470733a2f2f6a6f686e7368616c6c2e6769746875622e696f2f536861646f77726f636b65742d4144426c6f636b2d52756c65732d466f72657665722f6669677572652f73725f636e69702e706e67)](https://camo.githubusercontent.com/bf731b5a4840bb5fb1e6ad0b9b34e41d89009cf9fea005cea9619afd738d528a/68747470733a2f2f6a6f686e7368616c6c2e6769746875622e696f2f536861646f77726f636b65742d4144426c6f636b2d52756c65732d466f72657665722f6669677572652f73725f636e69702e706e67)

## 7.直连去广告

如果你想将 SR 作为 iOS 全局去广告工具，这个规则会对你有所帮助。

* 直连：所有请求
* 包含广告过滤

规则地址：<https://johnshall.github.io/Shadowrocket-ADBlock-Rules-Forever/sr_direct_banad.conf>

[![二维码](https://camo.githubusercontent.com/64e15dc2e2b42f7afb032eee06737a7e1857ccffa3e65e3b524cd765bfe815fa/68747470733a2f2f6a6f686e7368616c6c2e6769746875622e696f2f536861646f77726f636b65742d4144426c6f636b2d52756c65732d466f72657665722f6669677572652f73725f6469726563745f62616e61642e706e67)](https://camo.githubusercontent.com/64e15dc2e2b42f7afb032eee06737a7e1857ccffa3e65e3b524cd765bfe815fa/68747470733a2f2f6a6f686e7368616c6c2e6769746875622e696f2f536861646f77726f636b65742d4144426c6f636b2d52756c65732d466f72657665722f6669677572652f73725f6469726563745f62616e61642e706e67)

## 8.仅去广告规则

仅包含去广告规则，不包含代理/直连规则。用于与其他规则联用。

* 仅包含去广告规则，不包含代理/直连规则。无任何其他配置。

规则地址：<https://johnshall.github.io/Shadowrocket-ADBlock-Rules-Forever/sr_ad_only.conf>

[![二维码](https://camo.githubusercontent.com/e9a3436fed0edfc39c46290c114af8da61693f14c62323f02f26af88d20cf6f5/68747470733a2f2f6a6f686e7368616c6c2e6769746875622e696f2f536861646f77726f636b65742d4144426c6f636b2d52756c65732d466f72657665722f6669677572652f73725f61645f6f6e6c792e706e67)](https://camo.githubusercontent.com/e9a3436fed0edfc39c46290c114af8da61693f14c62323f02f26af88d20cf6f5/68747470733a2f2f6a6f686e7368616c6c2e6769746875622e696f2f536861646f77726f636b65742d4144426c6f636b2d52756c65732d466f72657665722f6669677572652f73725f61645f6f6e6c792e706e67)

## 9.懒人配置

不折腾，开箱即用。

* 配置简洁
* 规则覆盖范围广
* 国内外常用app单独分流

规则地址：<https://johnshall.github.io/Shadowrocket-ADBlock-Rules-Forever/lazy.conf>

[![二维码](https://camo.githubusercontent.com/65b520e939900a49ab6a36093398dbcc898841cf2dfcfa8fcf6aaeea4b0822e2/68747470733a2f2f6a6f686e7368616c6c2e6769746875622e696f2f536861646f77726f636b65742d4144426c6f636b2d52756c65732d466f72657665722f6669677572652f6c617a792e706e67)](https://camo.githubusercontent.com/65b520e939900a49ab6a36093398dbcc898841cf2dfcfa8fcf6aaeea4b0822e2/68747470733a2f2f6a6f686e7368616c6c2e6769746875622e696f2f536861646f77726f636b65742d4144426c6f636b2d52756c65732d466f72657665722f6669677572652f6c617a792e706e67)

## 10.懒人配置-含策略组

不折腾，开箱即用。下载规则后可在 i -> 代理分组 中自行配置。

* 配置简洁
* 规则覆盖范围广
* 国内外常用app单独分流
* 添加自动切换延迟最低节点类型
* 通过「代理分组」灵活调整流媒体分流策略

规则地址：<https://johnshall.github.io/Shadowrocket-ADBlock-Rules-Forever/lazy_group.conf>

[![二维码](https://camo.githubusercontent.com/e548e9930babed6b72774df25304caf39859f0486113fc433840b82d1bf4de4a/68747470733a2f2f6a6f686e7368616c6c2e6769746875622e696f2f536861646f77726f636b65742d4144426c6f636b2d52756c65732d466f72657665722f6669677572652f6c617a795f67726f75702e706e67)](https://camo.githubusercontent.com/e548e9930babed6b72774df25304caf39859f0486113fc433840b82d1bf4de4a/68747470733a2f2f6a6f686e7368616c6c2e6769746875622e696f2f536861646f77726f636b65742d4144426c6f636b2d52756c65732d466f72657665722f6669677572652f6c617a795f67726f75702e706e67)

## 三、策略组（代理分组）

策略组的作用示例：\
我想ChatGPT走美国节点，但是美国物理距离太远，我浏览youtube 观看Netflix和刷网页的时候延迟偏高，我想切换到距离近的日本/香港节点，这时候就需要策略组发挥作用，使各节点各司其职，不同网站走不同代理\
下面直接开始教学\
![](/files/kV54jHCjmZaJyW8xaKyq)

\
![](/files/ZgustbYwAtdQ3rGUqDlK)

![](/files/DqkGkVvENqcrK9o0rdOG)

![](/files/3QlqmaorAMLADOK84nJV)

以上策略实现了当我小火箭主页连接香港节点时，ChatGPT依旧走美国节点\
需要设置的规则分组为<mark style="color:red;">ChatGPT</mark>和<mark style="color:red;">美国节点</mark>，对于其他Youtube，Netflix等都按照这个操作即可，分组中若未配置则走的是<mark style="color:red;">Proxy规则</mark>，则为小火箭<mark style="color:red;">主页</mark>选择的节点.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

### （若<mark style="color:red;">类型</mark>选择为Url-Test，则会自动选择延迟较低的节点，若为Select，则为自己选择的节点）

<mark style="color:red;">根据以上自行进行举一反三</mark>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://faq.yesiamai.com/xiao-huo-jian-she-zhi-fen-liu-gui-ze.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
