# Oxy® Proxy Extension for Chrome

[**Oxy**® **代理扩展**](https://oxylabs.io/products/chrome-proxy-extension) 是一个适用于 Chrome 的代理管理扩展。它是免费的，并且可与您选择的任何代理提供商配合使用。

本快速指南展示如何集成 Oxylabs [**数据中心代理**](https://oxylabs.io/products/datacenter-proxies).

### 设置

{% stepper %}
{% step %}
[**下载**](https://chrome.google.com/webstore/detail/oxylabs-proxy-extension/infajoaodhhdogakhloedbppcbeajhoo) 并点击扩展图标以打开应用程序。

<figure><img src="/files/f59e374cbd564681fddf85afeaf447a898dee54a" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
点击 **+添加新代理** 按钮。

<figure><img src="/files/2c068120666f08a6952ef78844ecc94c6d6b354d" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
将会打开一个新标签页，您可以在其中 **设置您的代理配置文件**.

请按如下方式填写详细信息：

<table data-header-hidden data-full-width="false"><thead><tr><th></th><th></th></tr></thead><tbody><tr><td><strong>名称</strong></td><td><code>项目名称</code></td></tr><tr><td><strong>协议</strong></td><td><code>HTTP</code> 或 <code>HTTPS</code></td></tr><tr><td><strong>域名</strong></td><td><code>dc.oxylabs.io</code></td></tr><tr><td><strong>端口</strong></td><td><code>8000</code></td></tr><tr><td><strong>用户名</strong></td><td><code>user-USERNAME</code></td></tr><tr><td><strong>密码</strong></td><td><code>PASSWORD</code></td></tr></tbody></table>

{% hint style="warning" %}
请务必添加 `user-` 这一部分到您的用户名中。
{% endhint %}
{% endstep %}

{% step %}
点击 **保存更改**.

<figure><img src="/files/e278c16f0e8cc3a0d2403a2ff5c682e786f4c4a2" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
按第一步所示打开扩展程序，并点击 **连接**.

<figure><img src="/files/c5c6ef7bd9432c8904d90423f12d13cb8681e99b" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

就是这样。您现在正在使用会自动轮换 IP 地址的代理。

### 地理位置设置

若要访问来自特定国家的代理 IP，请在用户名后追加 `country-` 以及两位国家代码。例如，对于基于美国的代理，请使用： `user-USERNAME-country-US`。请查看 [文档](broken://pages/bdb8872b8d74b267ee1f329726517e452399607c) 以了解所有支持的国家。

### 静态会话

您也可以对多个请求使用相同的代理 IP 地址。端口 `8000` 将始终轮换代理 IP，而通过端口 `8001` 连接时则使用分配给该端口的 IP。要切换 IP，请将端口更改为 `8002`, `8003`，等等。您可以在您的 [代理列表](https://dashboard.oxylabs.io/?route=/overview/datacenter-proxies/proxy-lists).

{% hint style="success" %}
对于 **按 IP 计费** 订阅，端口是从给定列表中为某个 IP 地址分配的顺序编号。因此，端口 `8001` 使用您列表中的第一个 IP 地址。

对于 **按流量计费** 订阅，端口 `8001` 会选择一个随机 IP 地址，但在会话期间保持一致。在这里，您可以使用范围内的端口 `8001` 到 `63000`.
{% endhint %}

让我们添加一个使用端口 `8001`:

<figure><img src="/files/85d6c947ab89eb7f78a25884cb57ac96a58257d9" alt=""><figcaption></figcaption></figure>

的新静态代理。保存更改后，打开扩展窗口并连接到新创建的代理。

<figure><img src="/files/665d861fd1e5c45c2381946fd72a4e83406b25a0" alt="" width="375"><figcaption></figcaption></figure>

### 全局绕过列表

如果您在访问特定网站时不想使用代理，可以将它们添加到绕过列表中。打开扩展程序，点击 **管理代理**，然后打开 **全局绕过列表**.&#x20;

<figure><img src="/files/26b9996e99e6e5d4b9c634534948ee9444d61167" alt=""><figcaption></figcaption></figure>

例如，如果您想在访问 `https://ip.oxylabs.io/`时跳过使用代理，您应按如下方式输入地址： `https://ip.oxylabs.io` 或 `ip.oxylabs.io`。当您访问该网站时，您应该会看到您的常规 IP 地址，而不是代理 IP。

{% hint style="warning" %}
保存更改后，请断开并重新连接代理，以启用绕过列表。
{% endhint %}

### 常见错误

请使用下方列出的故障排除步骤来修复使用 Oxylabs 或其他提供商的代理时常见的扩展错误。

<details>

<summary>代理无法连接</summary>

尝试 **断开** 并 **重新连接** 扩展中的代理。如果问题仍然存在，请继续执行下面的下一步。

</details>

<details>

<summary>代理凭据不正确</summary>

请确认您输入的代理 **用户名** 并 **密码** 正确，并且与您的代理提供商分配的凭据一致。

对于 Oxylabs 数据中心代理，请确保您使用的是 **代理用户的** 用户名和密码，这些信息是您在 Oxylabs [控制面板](https://dashboard.oxylabs.io/)中创建的。您始终可以在控制面板中通过前往以下位置来编辑这些凭据： **我的产品** → **数据中心代理** → [**用户**](https://dashboard.oxylabs.io/?route=/overview/datacenter-proxies/users).

</details>

<details>

<summary>未追加时用户名无效 <code>user-</code></summary>

Oxylabs 数据中心代理 **要求您在代理用户的用户名后追加** 该 `user-` 字符串。例如，如果您的用户名是 `john_TFTdL`，那么您必须将用户名输入为 `user-john_TFTdL`.

</details>

<details>

<summary>代理域名或端口无效</summary>

请确保您使用的是有效的代理域名和端口号 **，并且与您的代理提供商分配的一致**.

Oxylabs 数据中心代理 的有效域名地址是 `dc.oxylabs.io` 以及端口 `8000`。请查看 [有效端口完整列表](https://dashboard.oxylabs.io/?route=/overview/datacenter-proxies/proxy-lists) ，位于控制面板中。您可以查看 [数据中心代理文档](broken://pages/8945268564fd27c25f7f3747b782d66cad6cde87) 以了解更多。

</details>

<details>

<summary>代理端口超出范围</summary>

请确认您输入的 **代理端口不超出范围**。对于 Oxylabs 数据中心代理，请参考以下基于订阅计划的端口范围列表：

* **免费代理：** 从 `8000` 到 `8005`.
* **按 IP 计费：** 取决于您购买的 IP 数量。例如，如果您购买了 `50` 个 IP，则端口范围将从 `8000` 到 `8050`.
* **按流量计费：** 从 `8000` 到 `63000`.

请访问控制面板查找您的 [带有分配端口号的代理列表](https://dashboard.oxylabs.io/?route=/overview/datacenter-proxies/proxy-lists).

</details>

<details>

<summary>扩展无法正常工作</summary>

如果扩展由于某种原因无法正常工作，请尝试 **卸载** 并 **重新安装** 它，通过 [Chrome 网上应用店](https://chromewebstore.google.com/detail/oxylabs-proxy-extension/infajoaodhhdogakhloedbppcbeajhoo) 或浏览器设置。

</details>

<details>

<summary>禁用第三方 VPN</summary>

如果您正在使用第三方虚拟专用网络（VPN），请将其关闭。它可能会与 Oxy® 代理扩展发生冲突。

</details>

本指南也适用于 [住宅代理](/integrations/cn/proxy-integrations/residential-proxies-guides/oxy-proxy-extension-for-chrome.md), [ISP代理](/integrations/cn/proxy-integrations/isp-proxies-guides/oxy-proxy-extension-for-chrome.md), [移动代理](/integrations/cn/proxy-integrations/mobile-proxies-guides/oxy-proxy-extension-for-chrome-1.md), [企业版](/integrations/cn/proxy-integrations/dedicated-datacenter-proxies-guides/enterprise/oxy-proxy-manager.md) 并 [自助式独享数据中心代理](/integrations/cn/proxy-integrations/dedicated-datacenter-proxies-guides/self-service/oxy-proxy-extension-for-chrome.md).

您还可以查看我们免费的 [**Oxy**® **代理管理器应用**](https://oxylabs.io/products/proxy-manager-app) （Android 版）。它可让您轻松添加和管理代理，并通过简单的一键连接在多个 IP 之间切换。


---

# Agent Instructions: 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:

```
GET https://developers.oxylabs.io/integrations/cn/proxy-integrations/datacenter-proxies-guides/oxy-proxy-extension-for-chrome.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
