juzhiyuan commented on code in PR #7400:
URL: https://github.com/apache/apisix/pull/7400#discussion_r916376393


##########
docs/zh/latest/plugins/uri-blocker.md:
##########
@@ -1,5 +1,10 @@
 ---
 title: uri-blocker
+keywords:
+  - APISIX
+  - Plugin

Review Comment:
   ```suggestion
     - API Gateway
   ```



##########
docs/zh/latest/plugins/uri-blocker.md:
##########
@@ -58,35 +63,35 @@ curl -i http://127.0.0.1:9080/apisix/admin/routes/1 -H 
'X-API-KEY: edd1c9f034335
 
 ## 测试插件
 
-```shell
-$ curl -i http://127.0.0.1:9080/root.exe?a=a
-HTTP/1.1 403 Forbidden
-Date: Wed, 17 Jun 2020 13:55:41 GMT
-Content-Type: text/html; charset=utf-8
-Content-Length: 150
-Connection: keep-alive
-Server: APISIX web server
+启用并配置插件后,使用 `curl` 命令尝试访问 `block_rules` 中指定文件的 URI:
 
-... ...
+```shell
+curl -i http://127.0.0.1:9080/root.exe?a=a
 ```
 
-如果你设置了属性 `rejected_msg` 的值为 `"access is not allowed"` ,将会收到如下的响应体:
+如果发现返回了带有 `403` 状态码的 HTTP 响应头,则代表插件生效:
 
 ```shell
-$ curl -i http://127.0.0.1:9080/root.exe?a=a
 HTTP/1.1 403 Forbidden
 Date: Wed, 17 Jun 2020 13:55:41 GMT
 Content-Type: text/html; charset=utf-8
 Content-Length: 150
 Connection: keep-alive
 Server: APISIX web server
+...
+```
 
+如果设置了属性 `rejected_msg` 的值为 `"access is not allowed"`,则还将会收到包含如下信息的响应体:

Review Comment:
   ```suggestion
   通过设置属性 `rejected_msg` 的值为 `access is not allowed`,则还会收到包含如下信息的响应体:
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to