> For the complete documentation index, see [llms.txt](https://docs.console.zenlayer.com/welcome/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.console.zenlayer.com/welcome/cn/content-delivery-network/domain-management/access-control/ua-restrictions.md).

# UA 限制

Zenlayer 内容分发网络允许您配置一个 User-Agent 黑名单来识别和过滤请求。通过这种方式，您可以限制对 CDN 资源的访问，提高服务安全性。

User-Agent 是一个 HTTP 头。它包含发出请求的客户端信息，包括操作系统（OS）、操作系统版本、浏览器和浏览器版本。

User-Agent 黑名单：User-Agent 头的值在黑名单中的请求将被拒绝。向客户端返回 HTTP 403 状态码。

<div align="left"><figure><img src="/files/FWyTtkRh0wp0gx21J8wl" alt="" width="375"><figcaption></figcaption></figure></div>

### 黑名单

预期结果：UA 中的上述字段将被封堵。
