参数
请参阅插件通用配置,了解所有插件通用的配置选项。
bypass_missing
boolean
默认值:
false如果为 true,则在缺少
User-Agent请求头时绕过 User-Agent 限制检 查。allowlist
array[string]
允许的 User-Agent 列表。支持正则表达式。
allowlist和denylist必须至少配置其中之一,但不能同时配置。denylist
array[string]
拒绝的 User-Agent 列表。支持正则表达式。
allowlist和denylist必须至少配置其中之一,但不能同时配置。message
string
默认值:
Not allowed当 User-Agent 被拒绝访问时返回的消息。