This is a plug-in that prohibits access to Kong through ip or specified domain name. Users can customize the configuration of the prohibited ip or domain name, as well as the HTTP status code and message content of the response.
Move the entire ip-access-forbidden directory to /usr/local/share/lua/5.1/kong/plugins, and modify /etc/kong/kong.conf:
plugins=bundled,ip-access-forbidden
Restart kong (kong restart)
kong restart
or reload (kong prepare && kong reload)
kong prepare && kong reload
Verify that the plugin loaded successfully
curl -s 127.0.0.1:8001 | jq '.plugins.available_on_server' | grep 'ip-access-forbidden'
Use Konga to configure and view the effect