shengnoah commented on issue #1617:
URL: 
https://github.com/apache/incubator-apisix/issues/1617#issuecomment-645098912


   > plugins:
   > 
   > 1. allow-list
   > 2. block-list
   > 
   > we can implement the plugin by 3 steps:
   > 
   > step1: hit rules and set response code
   > 
   > ```
   > {
   >     uri_rules: [
   >         "(?:liuneng)&DeviceId=XDS3EFG756767676DXCVXV234234",
   >         "(?:zhaosi)&DeviceId=CDF7EFG1212345687XCEVXV678976",
   >     ],
   >     rejected_code: 403
   > }
   > ```
   > 
   > step2: hit rules and set specify upstream
   > 
   > ```
   > {
   >     uri_rules: [
   >         "(?:liuneng)&DeviceId=XDS3EFG756767676DXCVXV234234",
   >         "(?:zhaosi)&DeviceId=CDF7EFG1212345687XCEVXV678976",
   >     ],
   >     honey_pot: "https://apisix.com/testcase_one";
   > }
   > ```
   > 
   > step3: hit rules and write the log to specify `syslog` server
   > 
   > ```
   > {
   >     uri_rules: [
   >         "(?:liuneng)&DeviceId=XDS3EFG756767676DXCVXV234234",
   >         "(?:zhaosi)&DeviceId=CDF7EFG1212345687XCEVXV678976",
   >     ],
   >     honey_pot: "https://apisix.com/testcase_one";,
   >     syslog_server: "udp://xxxx:2380/"
   > }
   > ```
   
   Maybe it's better to change the variable name. 
   
   uri_rules -> filter-rules
   Because not just filer URLs in future.
   
   honey_pot -> honeypot
   
   


----------------------------------------------------------------
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.

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


Reply via email to