> ## Documentation Index
> Fetch the complete documentation index at: https://brightdata-ipv6-release.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 移动代理常见问题解答

> 查找有关集成、配置和使用 Bright Data 移动代理产品的常见问题解答（包括IP类型、地理定位和错误代码）。

<AccordionGroup>
  <Accordion title="Bright Data 的代理分布在哪些地方？">
    Bright Data在全球每个国家/地区都有代理，以下国家除外：

    * 伊朗
    * 伊拉克
    * 叙利亚
    * 黎巴嫩
    * 巴勒斯坦
    * 朝鲜
    * 古巴
    * 苏丹
    * 俄罗斯克里米亚地区

    如果您需要来自这些国家/地区的代理，很遗憾， Bright Data 无法为您提供帮助。
  </Accordion>

  <Accordion title="如何使用中国住宅IP浏览中国网站">
    **在中国境外时**\
    只需定位中国住宅IP对等节点即可：

    ```sh theme={null}
    curl --proxy brd.superproxy.io:33335 --proxy-user brd-customer-<customer_id>-zone-<zone_name>-country-cn:<zone_password> "<target_site>"
    ```

    在中国境内时除了定位中国住宅IP对等节点之外，还需要定位我们的中国超级代理。

    * 使用 API 命令时，代理 DNS 服务器为 `servercountry-cn.brd.superproxy.io`

    ```sh theme={null}
    curl --proxy servercountry-cn.brd.superproxy.io:33335 --proxy-user brd-customer-<customer_id>-zone-<zone_name>-country-cn:<zone_password> "<target_site>"
    ```

    * 使用代理管理器时：

      * 只需点击端口，即可选择相关的端口设置\\
            <img src="https://mintcdn.com/brightdata-ipv6-release/jhzH8t2zNXqTWQPj/images/proxy-networks/faqs/port-row.png?fit=max&auto=format&n=jhzH8t2zNXqTWQPj&q=85&s=9745c5580d87a3982414c70a0f4aafb3" alt="port-row.png" width="1490" height="231" data-path="images/proxy-networks/faqs/port-row.png" />

      * 选择定位，并将中国设置为目标国家\\
            <img src="https://mintcdn.com/brightdata-ipv6-release/jhzH8t2zNXqTWQPj/images/proxy-networks/faqs/target-china.png?fit=max&auto=format&n=jhzH8t2zNXqTWQPj&q=85&s=ad7597b6a22215ab70c5dfb0d4a8fe71" alt="target-china.png" width="1848" height="459" data-path="images/proxy-networks/faqs/target-china.png" />

      * 选择IP控制：将超级代理位置设置为“中国”。
            <img src="https://mintcdn.com/brightdata-ipv6-release/jhzH8t2zNXqTWQPj/images/proxy-networks/faqs/super-proxy-china.png?fit=max&auto=format&n=jhzH8t2zNXqTWQPj&q=85&s=2a1c4d6c015380f3fa1209a1d27fad37" alt="super-proxy-china.png" width="1838" height="566" data-path="images/proxy-networks/faqs/super-proxy-china.png" />
  </Accordion>

  <Accordion title="特定于运营商的代理对等节点IP">
    * 您可以选择使用以下列表中的特定运营商：

    ```
    a1, aircel, airtel, att, celcom, chinamobile, claro, comcast, cox, digi, 
    dt, docomo, dtac, etisalat, idea, kyivstar, meo, megafon, mtn, mtnza, mts,
    optus, orange, qwest, reliance_jio, robi, sprint, telefonica, telstra, 
    tmobile, tigo, tim, verizon, vimpelcom, vodacomza, vodafone, vivo, zain,
    vivabo, telenormyanmar, kcelljsc, swisscom, singtel, asiacell, windit, 
    cellc, ooredoo, drei, umobile, cableone, proximus,tele2, mobitel, o2, 
    bouygues, free, sfr, digicel
    ```

    * 例如

    <CodeGroup>
      ```sh Deutsche Telekom theme={null}
      brd-customer-<customer_id>-zone-<zone_name>-carrier-dt
      ```

      ```sh Sprint theme={null}
      brd-customer-<customer_id>-zone-<zone_name>-carrier-sprint
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="关于地理位置数据库，以及如何检查代理IP信息？">
    互联网网站使用地理位置数据库（GeoDB）来查询用户所使用的IP地址的信息。Bright Data 监控并维护现今4个主要 GeoDB 的正确记录：Maxmind、ip2location、db-ip 和 Google。

    还有许多其他较小的GeoDB，其中大多数使用的是过时的记录或有缺陷的测试方法，因此所提供的信息并不准确，或者只是用来吸引浏览者向其购买VPN或代理产品。因此，在测试IP时，我们强烈建议您使用上述的GeoDB。

    要查看您使用的代理IP的信息，请浏览以下其中一个：

    * [https://lumtest.com/echo.json](https://lumtest.com/echo.json)

    * [https://www.iplocation.net](https://www.iplocation.net)

    * [https://www.maxmind.com/en/geoip-demo](https://www.maxmind.com/en/geoip-demo)
  </Accordion>

  <Accordion title="哪些 Bright Data 产品最适合用来抓取搜索引擎 (SERP)?">
    #### 用于单步抓取：

    [SERP API](https://docs.brightdata.com/scraping-automation/serp-api/introduction) 是针对 SERP 进行抓取的理想产品，因其具有主动解锁、自动选择最佳代理、自定义标头、规避指纹识别、CAPTCHA验证码破解等功能，可以保证成功率（不成功不收费）。

    #### 用于多步抓取 (playwright/puppeteer/selenium):

    [Scraping Browser](https://docs.brightdata.com/scraping-automation/scraping-browser/introduction) 是理想的产品，是我们完全托管在云上的浏览器，旨在由我们为您全面处理代理工作和基础设施解锁（包括 CAPTCHA 验证码破解），以帮助您轻松专注于多步骤数据收集。
  </Accordion>

  <Accordion title="我能否使用住宅、数据中心或ISP代理网络来针对 Google SERP 进行抓取？">
    **住宅代理** - 不可以, [SERP API](https://docs.brightdata.com/scraping-automation/serp-api/introduction)是针对 SERP 进行抓取的理想产品，因其具有主动解锁、自动选择最佳代理、自定义标头、规避指纹识别、验证码破解等功能，可以保证成功率（不成功不收费）。通过住宅网络定位 Google SERP 将导致绕过超级代理，从而造成请求从我们的服务器而不是对等节点发送。

    **数据中心和ISP代理** - 不可以。当您试图通过这两个代理网络的其中一个来针对 Google 进行抓取时，请求将被拒绝，您将在响应标头中收到以下错误消息：

    ```
    HTTP/1.1 403 Search engine host is not allowed
    X-Luminati-Error: Forbidden: This target URL isn't supported on proxy networks, use the SERP API product for targeting this URL. 您可以联系您的账户经理或创建支持工单，以寻求帮助
    ```
  </Accordion>

  <Accordion title="Bright Data 是否支持 SOCKS5 协议？">
    是的。Bright Data 支持 `SOCKS5` 协议，为 `SOCKS5` 通信分配的默认端口为 `22228`。

    请参阅此处了解完整的 SOCKS5 配置说明或访问 SOCKS5 代理页面。

    [full SOCKS5 configuration instructions](https://docs.brightdata.com/proxy-networks/socks5), [SOCKS5 proxies page](https://brightdata.com/solutions/socks5-proxies).
  </Accordion>

  <Accordion title="错误代码 502 是什么？">
    HTTP错误代码502表示“网关错误”。当您向URL发送请求，但URL的服务器从另一个用于完成请求的服务器接收到无效响应时，就会出现此错误。

    **可能的原因**

    * 我们目前没有与您的区域配置相匹配的对等节点，因为那些对等节点可能已被不同的客户端使用，或由于其他原因而不可用。

    * 由于没有活动，连接已超时。

    * 主机（目标URL）端已关闭连接

    **错误 502 响应示例**

    ```
    Request URL: SAMPLE_URL Request method: GET ***Status code: 502***  
    Super proxy IP: IP  
    Username: brd-customer-customer_id-zone-zone_name-country  
    Password: zone_password  
    Sent from: 127.0.0.1  
    Response headers  
    connection: keep-alive  
    date: Tue, 14 Feb 2023 08:49:16 GMT  
    keep-alive: timeout=5  
    transfer-encoding: chunked  
    x-lpm-port: 24000  
    x-luminati-error: waiting for selector ".price-container" failed: timeout 90000ms exceeded  
    ***x-luminati-error-code: expect_element***  
    x-request-id2: REQUEST_ID  
    Request headers  
    user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36(KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36  
    host: SAMPLE_HOST  
    accept-encoding: gzip, deflate  
    Connection: keep-alive
    ```
  </Accordion>

  <Accordion title="错误代码 403 是什么？">
    HTTP 403响应代码表示禁止您访问一个有效的URL。

    服务器理解请求，但由于客户端的问题而无法完成请求。

    **可能的原因**

    * 您的机器IP未列入白名单。要了解如何将IP列入白名单，请参阅以下文章: [https://docs.brightdata.com/api-reference/proxy-manager/whitelist\_ips](https://docs.brightdata.com/api-reference/proxy-manager/whitelist_ips)

    * 您尝试访问的域被 Bright Data 屏蔽 。

    * 您尝试访问的域未在您的用例中指定。

    * 验证码响应失败（与Web Unlocker和SERP API相关）。

    * 您尝试访问的域被您区域的目标主机设置禁止访问（请检查您的代理区域访问参数）

    **错误403响应示例**

    ```
    < HTTP/1.1 403 response status was rejected  
    < x-debug-req-id: SAMPLE_ID  
    < X-Luminati-Error: response status was rejected: 403 Forbidden  
    < X-Luminati-Error-Code: http_status  
    < Date: Wed, 22 Feb 2023 11:11:23 GMT  
    < Connection: keep-alive  
    < Keep-Alive: timeout=5  
    < Transfer-Encoding: chunked
    ```

    403 `X-luminati-error` (Forbidden) 表示您的目标域是Bright Data不允许的域。  \
    要解决此问题，请联系Bright Data合规团队，获取批准。  \
    当 Bright Data 合规团队审查您的用例并确认后，将通知您已添加访问权限。  \
    要获得更好的处理，建议您将客户经理添加到支持工单中，并将您的要求告知客户经理。

    当出现以下错误消息时：

    ```
    You tried to target <host> but got blocked
    ```

    请联系Bright data合规团队（[compliance@brightdata.com](mailto:compliance@brightdata.com)），或通过工单系统联系我们

    我们的合规团队将会审查您要求访问特定域的请求
  </Accordion>

  <Accordion title="移动代理有哪些设备和网络？" defaultOpen={false}>
    BrightData移动代理是连接到真实移动网络（而非个人或公共wifi）的真实移动设备。.

    发出请求时，在响应标头中，我们通过gIP或使用的代理（我们用来区分代理并保护对等节点的真实IP地址的掩码哈希值）填充字段x-brd-ip。对于移动代理，此字段将以字母“m”作为前缀。
  </Accordion>
</AccordionGroup>
