Issue description
ip-restriction will return json when the remote ip matches blacklist
{"message":"Your IP address is not allowed"}
I think default 403 error page will be better, or supporting an option to change this behavior is ok
Environment
- apisix version (cmd:
apisix version): 2.2
- OS (cmd:
uname -a): ubuntu
- OpenResty / Nginx version (cmd:
nginx -V or openresty -V): 1.19
- etcd version, if have (cmd: run
curl http://127.0.0.1:9090/v1/server_info to get the info from server-info API): 3.4.13
- apisix-dashboard version, if have:
Issue description
ip-restriction will return json when the remote ip matches blacklist
I think default 403 error page will be better, or supporting an option to change this behavior is ok
Environment
apisix version): 2.2uname -a): ubuntunginx -Voropenresty -V): 1.19curl http://127.0.0.1:9090/v1/server_infoto get the info from server-info API): 3.4.13