You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "monkeyDluffy6017 (via GitHub)" <gi...@apache.org> on 2023/05/24 01:48:15 UTC

[GitHub] [apisix] monkeyDluffy6017 commented on a diff in pull request #9448: feat(ua-restriction): support allowlist-only mode

monkeyDluffy6017 commented on code in PR #9448:
URL: https://github.com/apache/apisix/pull/9448#discussion_r1203289502


##########
docs/zh/latest/plugins/ua-restriction.md:
##########
@@ -43,7 +43,8 @@ description: 本文介绍了 Apache APISIX ua-restriction 插件的使用方法
 
 :::note
 
-`allowlist` 和 `denylist` 可以同时启用。同时启用时,插件会根据 `User-Agent` 先检查 `allowlist`,再检查 `denylist`。
+1.`allowlist` 和 `denylist` 可以同时启用。同时启用时,插件会根据 `User-Agent` 先检查 `allowlist`,再检查 `denylist`。
+2.如果只设置了 `allowlit` 并且 `User-Agent` 不在 `allowlist` 中,请求将会被拒绝。

Review Comment:
   ```suggestion
   2.如果只设置了 `allowlist` 并且 `User-Agent` 不在 `allowlist` 中,请求将会被拒绝。
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org