> 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) **\[添加]** **和** 会进一步细化某个特定条件，而选择 ![](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    | 由合作伙伴控制、用于报告的查询字符串参数。                                                                                                                                                                                                                                                                                                                                                                                          |
| 国家       | 流量来源国家/地区。                                                                                                                                                                                                                                                                                                                                                                                                     |
| 地区       | 流量来源的地理区域。                                                                                                                                                                                                                                                                                                                                                                                                     |
| 广告状态     | 相关广告的使用状态。                                                                                                                                                                                                                                                                                                                                                                                                     |
| Sub Id1  | 由合作伙伴控制、用于报告的查询字符串参数。                                                                                                                                                                                                                                                                                                                                                                                          |
| Sub Id2  | 由合作伙伴控制、用于报告的查询字符串参数。                                                                                                                                                                                                                                                                                                                                                                                          |
| Sub 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
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=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
