membphis edited a comment on issue #1617:
URL:
https://github.com/apache/incubator-apisix/issues/1617#issuecomment-644787064
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/"
}
```
----------------------------------------------------------------
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:
[email protected]