> For the complete documentation index, see [llms.txt](https://qx.atlucky.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://qx.atlucky.me/shi-yong-fang-fa/pei-zhi-wen-jian-xiang-jie/filter-fen-liu-gui-ze/filterlocal-ben-di-fen-liu.md).

# filter\_local(本地分流)

通过分流规则添加的分流规则，保存在配置文件的<mark style="color:red;">\[filter\_local]</mark>字段下，添加方式有三种

* 通过文本编辑方式添加到\[filter\_local]字段下（不推荐）
* 通过UI方式：点击风车->点击分流规则->右上角的➕号->添加规则并保存（强烈建议）
* 通过设置->[配置片段](/shi-yong-fang-fa/pei-zhi-pian-duan.md)->添加分流片段的方式(建议，可以当做分流资源进行管理)

见下图指示：

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

分流规则界面图标讲解：

<figure><img src="/files/7uAJ2q2v3Tv777JIWMJY" alt=""><figcaption></figcaption></figure>

{% hint style="info" %} <mark style="color:red;">一个小技巧</mark>：
{% endhint %}

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

点击[添加\[国内分流\]](https://quantumult.app/x/open-app/add-resource?remote-resource=%7B%0A%20%20%22filter_remote%22%20%3A%20%5B%0A%20%20%20%20%22https%3A%2F%2Fraw.githubusercontent.com%2FRepcz%2FOpen-Proflies%2Fmain%2FQuantumultX%2FRules%2FFILTER_REGION.snippet%2C%20tag%3DCN%2C%20force-policy%3Ddirect%2C%20update-interval%3D-1%2C%20opt-parser%3Dfalse%2C%20enabled%3Dtrue%22%0A%20%20%5D%0A%7D)，会调用GeoIPLite2数据库，使国内网站不走代理。

如有需要可以另外点击添加[\[国内域名规则集\]](https://quantumult.app/x/open-app/add-resource?remote-resource=%7B%0A%20%20%22filter_remote%22%20%3A%20%5B%0A%20%20%20%20%22https%3A%2F%2Fraw.githubusercontent.com%2FRepcz%2FTool%2FX%2FQuantumultX%2FRules%2FChinaDomain.list%2C%20tag%3D%E5%9B%BD%E5%86%85%E5%9F%9F%E5%90%8D%E8%A7%84%E5%88%99%2C%20force-policy%3Ddirect%2C%20update-interval%3D172800%2C%20opt-parser%3Dfalse%2C%20enabled%3Dtrue%22%0A%20%20%5D%0A%7D)，建议放在\[GeoIP CN]规则上方。

ⓘ 建议添加后长按规则挪动到最下方。

ⓘ 建议手动替换\[GeoIP数据库]

{% hint style="info" %}
分流规则的类型、参数、策略见[**分流规则**](/shi-yong-fang-fa/pei-zhi-wen-jian-xiang-jie/filter-fen-liu-gui-ze.md)相关介绍。
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://qx.atlucky.me/shi-yong-fang-fa/pei-zhi-wen-jian-xiang-jie/filter-fen-liu-gui-ze/filterlocal-ben-di-fen-liu.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
