> For the complete documentation index, see [llms.txt](https://docs.iproyal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.iproyal.com/cn/dai-li/huang-jia-zhu-zhai-dai-li/dai-li.md).

# 代理

在本节中，我们将深入了解代理字符串的创建和配置。我们将介绍如何针对特定位置，应用轮换设置，选择适当的协议等等。此外，我们将演示如何使用代理发出请求。

首先需要了解的是，代理字符串由四个元素组成：**主机、端口、用户名和密码**。虽然这四个元素的组合方法有多种，但为了简单起见，我们将采用这样的格式：**主机:端口:用户名:密码**。

皇家住宅代理使用该字符串的**密码**段来配置上述设置。例如，以下是一个针对美国加利福尼亚州设计的代理字符串：

<figure><img src="https://content.gitbook.com/content/ocBfddKBo5nf8WdKl9vN/blobs/4FFDnyT1el80HCuqOICS/IPR%20Dokumentacija_1200x400.png" alt=""><figcaption></figcaption></figure>

可以看到，该字符串有四个主要部分（以蓝色突出显示），最后一个部分标记为“密码”。这个部分包含代理的所有配置细节。

### 代理服务器区域

我们提供多个代理区域：

* `proxy.iproyal.com` - 德国区域
* `us.proxy.iproyal.com` - 美国区域
* `sg.proxy.iproyal.com` - 新加坡区域

如需自动选择区域，请使用 `geo.iproyal.com` - 它会根据您的请求 IP 地址自动连接到最佳区域。


---

# 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://docs.iproyal.com/cn/dai-li/huang-jia-zhu-zhai-dai-li/dai-li.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.
