# 何时应考虑隐藏源站服务器？

隐藏源服务器意味着 CDN 防止公众直接访问源服务器（托管原始内容的服务器）。相反，所有流量都通过 CDN 路由，CDN 作为保护层。

1. **防止 DDoS 攻击**：如果您的网站是 DDoS 攻击的目标，隐藏源服务器可以帮助防止攻击者用流量压垮它，因为攻击者无法直接针对源服务器的 IP 地址。
2. **提高安全性**：隐藏源服务器通过防止未经授权的访问、保护敏感数据和降低被黑客攻击的风险，增加了安全性。
3. **确保高可用性**：通过将所有流量通过 CDN 路由，即使源服务器暂时不可用，您也可以确保用户仍然能够收到内容。在这些情况下，CDN 可以提供缓存的内容。
4. **减轻服务器负载**：如果您的网站接收大量流量，隐藏源服务器可以确保 CDN 承担大部分负载，减轻源服务器的压力。

通过隐藏源服务器，您既增强了网站的安全性，又提高了性能，使其更能抵御攻击和流量高峰。


---

# 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://docs.console.zenlayer.com/welcome/cn/global-accelerator/faq/when-should-i-consider-hiding-the-origin-server.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.
