Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kayx23 committed Feb 8, 2025
1 parent db4174f commit 0605ac4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/zh/latest/plugins/ua-restriction.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ The `ua-restriction` Plugin supports restricting access to upstream resources th

| 名称 | 类型 | 必选项 | 默认值 | 有效值 | 描述 |
| --------- | ------------- | ------ | ------ | ------ | -------------------------------- |
|byp​​ass_missing|boolean||false||如果为 true,则在缺少 `User-Agent` 标头时绕过用户代理限制检查。|
|allowlist|array[string]|||| 要允许的用户代理列表。支持正则表达式。应配置 `allowlist``denylist` 中至少一个,但不能同时配置。|
|denylist|array[string]|||| 要拒绝的用户代理列表。支持正则表达式。应配置 `allowlist``denylist` 中至少一个,但不能同时配置。|
|message|string|| "Not allowed" || 拒绝用户代理访问时返回的消息。|
| byp​​ass_missing |boolean|| false | | 如果为 true,则在缺少 `User-Agent` 标头时绕过用户代理限制检查。|
| allowlist | array[string] || | | 要允许的用户代理列表。支持正则表达式。应配置 `allowlist``denylist` 中至少一个,但不能同时配置。|
| denylist | array[string] || | | 要拒绝的用户代理列表。支持正则表达式。应配置 `allowlist``denylist` 中至少一个,但不能同时配置。|
| message | string || "Not allowed" | | 拒绝用户代理访问时返回的消息。|

## 示例

Expand Down

0 comments on commit 0605ac4

Please sign in to comment.