> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/blocking-and-redirect-rules/configure-block-routing-rules.md).

# 配置阻止路由规则

**拦截**，一种 **路由规则**，将阻止流量被重定向到另一个网页。当符合特定条件的流量（称为 *条件*）时，例如，点击由您的某个合作伙伴投放的广告时，他们将无法访问该广告的目标 URL，而会被拦截。

来自某些合作伙伴、特定国家，甚至来自某个指定 URL（即 *引荐 URL*）的流量，都可以被阻止访问目标 URL。

#### **创建拦截规则**

1. 从顶部导航栏中选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2F210dEQa93qyQgoJDkieL%2FUser%20profile.svg?alt=media\&token=f84c5b17-fae4-4a30-990a-9de5e57a150b) **\[用户资料] → 设置**.
2. 在右侧，位于 *技术*下，选择 **拦截与重定向**.
3. 在右上角，选择 **配置规则**.
4. 添加一个 **名称** ，用于您的规则。
5. 在……中 *条件* 部分，使用下拉菜单配置您的拦截规则。
   * 查看 *条件参考* ，了解更多关于不同条件属性的信息。
6. 在……中 *操作* 部分，请确保将下拉菜单设置为 **拦截**.
   * 如果您想要一个 [中间页](https://en.wikipedia.org/wiki/Interstitial_webpage)，请开启并配置 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FiZjM1xY8o3v1iR3Zaysd%2FToggle.svg?alt=media\&token=b1550d48-bba9-4e81-8604-bc12370c5caa) **\[打开]** **使用中间页**。请确保将 *模板* 下拉菜单设置为 **自定义**.
7. 可选地， **安排** 此拦截规则何时生效。
8. **优先级** 该拦截规则。
   * 如果多个拦截规则共享部分相同条件以及相同的 **优先级**，则优先级较低的 **ID** 将优先。
9. 如果您不希望拦截立即开始，并且您没有 **安排** 该规则，您可以 **暂停** 该规则。
   * 您需要手动取消暂停此规则，它才会生效。
10. **保存** 您的拦截规则。

    <div data-with-frame="true"><figure><img src="https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FT6dkCVeK5xMijSXxsYQg%2FScreenshot%202026-05-06%20at%2018.20.08.png?alt=media&amp;token=751a0b66-a274-4d9e-8be5-be0c3a58f41e" alt="" width="563"><figcaption></figcaption></figure></div>

**中间页设置**

请参阅下表，了解有关设置拦截中间页的各个可用选项的更多信息。

|            |                     |
| ---------- | ------------------- |
| **中间页设置项** | **说明**              |
| 标题文本       | 在中间页上以大字号显示的简短短语。   |
| 正文文本       | 流量在中间页上看到的信息。       |
| 预览         | 打开一个新的浏览器标签页以预览中间页。 |

<details>

<summary>条件参考</summary>

*条件* 设置采用 *AND/OR* 系统：选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-6282f271b7521383385339243690b303086736d9%2F3b5a585dd2895bdf1c30d1236c72ba590dddd18717863b27074c8d313d05ae20.svg?alt=media) **\[添加]** **AND** 会进一步细化某个特定条件，而选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-6282f271b7521383385339243690b303086736d9%2F3b5a585dd2895bdf1c30d1236c72ba590dddd18717863b27074c8d313d05ae20.svg?alt=media) **\[添加]** **添加另一个** 将添加一个独立条件，该条件可以但不一定需要满足，拦截规则才会激活。

以下是可用于填写条件的不同属性：

|          |                                                                                                                                                                                                                                                                                                                                                                                                              |
| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **条件属性** | **说明**                                                                                                                                                                                                                                                                                                                                                                                                       |
| IP 地址    | 注册到设备的 IP 地址。                                                                                                                                                                                                                                                                                                                                                                                                |
| 共享 ID    | 由合作伙伴控制、用于报告的查询字符串参数。                                                                                                                                                                                                                                                                                                                                                                                        |
| 国家       | 流量来源国家/地区。                                                                                                                                                                                                                                                                                                                                                                                                   |
| 地区       | 流量来源地理区域。                                                                                                                                                                                                                                                                                                                                                                                                    |
| 广告状态     | 相关广告的使用状态。                                                                                                                                                                                                                                                                                                                                                                                                   |
| 子 ID1    | 由合作伙伴控制、用于报告的查询字符串参数。                                                                                                                                                                                                                                                                                                                                                                                        |
| 子 ID2    | 由合作伙伴控制、用于报告的查询字符串参数。                                                                                                                                                                                                                                                                                                                                                                                        |
| 子 ID3    | 由合作伙伴控制、用于报告的查询字符串参数。                                                                                                                                                                                                                                                                                                                                                                                        |
| MP ID    | impact.com 为合作伙伴分配的唯一 ID。                                                                                                                                                                                                                                                                                                                                                                                    |
| 设备类型     | 提示激活该拦截规则时，客户正在使用的设备类型。                                                                                                                                                                                                                                                                                                                                                                                      |
| 引荐 URL   | 将流量引荐到原始目标 URL 的网站 URL。                                                                                                                                                                                                                                                                                                                                                                                      |
| 落地页      | 原始目标 URL。                                                                                                                                                                                                                                                                                                                                                                                                    |
| 产品 SKU   | 广告对象的 ID，通常在产品目录中指定。                                                                                                                                                                                                                                                                                                                                                                                         |
| 广告 ID    | impact.com 为广告分配的唯一 ID。                                                                                                                                                                                                                                                                                                                                                                                      |
| 概率       | 该拦截规则会随机抽取一定比例的流量进行重定向。这主要用于 A/B 测试。                                                                                                                                                                                                                                                                                                                                                                         |
| 移动端备用    | <p>如果广告已配置 <a href="/brand/zh/what-would-you-like-to-learn-about/platform-features/blocking-and-redirect-rules/create-app-install-interstitials.md">移动端备用</a> ，相关路由规则可以请求将流量重定向到各自的应用商店，以下载应用。</p><p>由于流量不会被重定向，因此您无需设置带有移动端备用条件的拦截路由规则。了解更多关于 <a href="/brand/zh/what-would-you-like-to-learn-about/platform-features/blocking-and-redirect-rules/create-app-install-interstitials.md">移动端备用和应用中间页</a>.</p> |

</details>

#### **批量上传拦截规则**

也可以使用 .XLSX 或 .CSV 文件批量上传并配置拦截规则。并非所有文件列都可用——请参阅 [impact.com 路由规则批量上传数据字段](https://docs.google.com/spreadsheets/d/1wt39bVgv9p4XVNzF8MaBdRFTAD5DUPwZKM6jnR5OAnM/edit?usp=sharing) 电子表格，了解每一列的更多信息。

1. 从顶部导航栏中选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2F210dEQa93qyQgoJDkieL%2FUser%20profile.svg?alt=media\&token=f84c5b17-fae4-4a30-990a-9de5e57a150b) **\[用户资料] → 设置**.
2. 在右侧，位于 *技术*下，选择 **拦截与重定向**.
3. 在右上角，选择 **批量上传**.
4. 选择 **选择文件**，然后选择您的文件。
   * 请参阅 [impact.com 路由规则批量上传数据字段](https://docs.google.com/spreadsheets/d/1wt39bVgv9p4XVNzF8MaBdRFTAD5DUPwZKM6jnR5OAnM/edit?usp=sharing) 电子表格，查看您的文件应如何格式化。
5. 选择 **下一步**.
6. 如果存在验证错误，请选择 **返回** 以上传新文件。否则，请选择 **接受并创建规则**.
   * 任何存在验证错误的拦截规则都不会被创建。

批量文件中上传的重定向规则最多可能需要一天才能处理。

<div data-with-frame="true"><figure><img src="https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FJccjiEuG80nZGIP4QUlN%2FScreenshot%202026-05-06%20at%2018.32.03.png?alt=media&amp;token=319c25bf-2bba-4e81-b2b5-79ad7a610ddb" alt="" width="375"><figcaption></figcaption></figure></div>

#### **归档拦截规则**

归档路由规则的方式与停用相同：流量将不再根据该拦截规则中设置的条件被拦截。任何类型的路由规则都无法被完全删除。

1. 从顶部导航栏中选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2F210dEQa93qyQgoJDkieL%2FUser%20profile.svg?alt=media\&token=f84c5b17-fae4-4a30-990a-9de5e57a150b) **\[用户资料] → 设置**.
2. 在右侧，位于 *技术*下，选择 **拦截与重定向**.
3. 找到你要归档的规则，然后选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FMLtRUwWz0pujlfmYWOgg%2FMoreVN.svg?alt=media\&token=03a3c355-a347-4207-baf7-c44fadf6d080) **\[更多]** **→ 归档**.
4. 选择 **我明白了，继续**.

您可以随时通过选择以下项重新激活已归档的拦截规则 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FMLtRUwWz0pujlfmYWOgg%2FMoreVN.svg?alt=media\&token=03a3c355-a347-4207-baf7-c44fadf6d080) **\[更多]** **→ 重新激活**.


---

# 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://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/blocking-and-redirect-rules/configure-block-routing-rules.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.
