> 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/partner/zh/ni-xiang-liao-jie-shen-me/platform-features/tracking/website-crawling-requirements-for-partners.md).

# 合作伙伴网站抓取要求

作为合作伙伴，您可能需要采取某些措施，例如配置 User-Agent 标识，以确保 impact.com 受监管合规爬虫能够通过适当授权，不间断地以程序化方式访问并检索您网站上的数据。本指南主要面向负责管理网站访问权限和安全设置的开发人员、IT 管理员及技术团队。

## 如何允许 impact.com 受监管合规机器人访问

作为合作伙伴，impact.com 可能会通过受监管合规机器人监控您的网站，以确保特定内容符合您与品牌方达成的协议。每项受监控内容都需要单独访问您的网站，因此，受监控内容数量较多的网站会按比例收到更多请求。

如果 impact.com 受监管合规机器人受到限制（例如返回 HTTP 429 – 请求过多或 HTTP 403 – 禁止访问），我们可能无法审核和验证您的内容，从而影响合规情况的可见性。

### **为确保监控不中断：**

* 使用提供的 User-Agent 将 impact.com 受监管合规机器人加入允许列表。
* 避免阻止或限制来自 impact.com 受监管合规机器人的合法请求。
* 使用请求标头中包含的签名验证 impact.com 受监管合规机器人，以确认其真实性并防止伪造。
* 允许并验证 impact.com 受监管合规机器人，有助于确保您的内容得到准确审核，并在 impact.com 系统中正确呈现。

## User-Agent 标识

我们的爬虫会在发起 Web 请求时使用自定义 `User-Agent` 来标识自身。作为合作伙伴，您可以据此将 impact.com 的合规流量与其他机器人和爬虫区分开来。

要加入允许列表的 User-Agent 字符串（请完全按如下所示使用）：

```programlisting
Mozilla/5.0 (compatible;Impact.com Agent) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
```

### **验证 impact.com 爬虫请求**

要确认传入流量来自 impact.com 爬虫，每个请求都会包含一个自定义 HMAC 签名标头：

```programlisting
X-Impact-Crawler-Signature: <hmac signature>
```

您可以使用已知密钥和共享算法，通过此签名验证请求。这可确保请求确实来自 impact.com，且未遭篡改。

<details>

<summary>签名构造</summary>

**签名构造**

我们按以下流程计算签名：

* **密钥**: `/impact/crawler/signature/`
* **待签名数据**: `User-Agent`
* **HMAC 算法：** `HMAC-SHA256`
* **签名输出**: `十六进制字符串`

</details>

<details>

<summary>如何验证（伪代码）</summary>

```programlisting
const crypto = require('crypto');

// 从传入请求中提取标头
const userAgent = req.headers['user-agent'];
const signature = req.headers['x-impact-crawler-signature'];

const secret = '/impact/crawler/signature/';

// 重新计算签名
const expectedSignature = crypto
  .createHmac('sha256', secret)
  .update(userAgent)
  .digest('hex');

// 比较签名
if (signature === expectedSignature) {
  // ✅ 已验证
} else {
  // ❌ 拒绝请求或记录日志以供审核
}
```

{% hint style="danger" %}
**警告：** 请务必使用请求中收到的完全一致的 `User-Agent` 值。任何修改，例如修剪、解码或重新格式化，都会导致签名不匹配。
{% endhint %}

</details>

## 受监管合规监控的 IP 允许列表

为支持持续进行的受监管合规监控，请将以下 IP 地址范围添加到允许列表中。这样可以确保来自 impact.com 的流量不会被误拦截，并确保网站监控能够顺利进行，不受中断。

### **允许以下 IP 范围：**

* 163.116.128.0/17
* 162.10.0.0/17
* 31.186.239.0/24
* 8.39.144.0/24
* 8.36.116.0/24
* 34.145.188.137
* 35.245.212.57
* 34.21.56.213
* 34.48.90.233
* 35.245.229.167
* 34.150.151.151
* 35.245.185.65
* 35.188.242.212
* 34.86.33.122
* 34.145.224.193
* 35.245.135.218
* 35.221.1.178
* 34.150.217.77
* 107.175.80.80
* 162.212.175.22
* 107.172.69.119

我们建议更新防火墙或访问控制列表，以允许来自以下 impact.com IP 地址范围的入站流量。

{% hint style="success" %}
**建议：** 如需就受监管合规监控和机器人访问进行技术协调或咨询， [请联系支持团队](https://app.impact.com/secure/advertiser/support/customer-support-portal-flow.ihtml).
{% 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 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/partner/zh/ni-xiang-liao-jie-shen-me/platform-features/tracking/website-crawling-requirements-for-partners.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.
