How to block access to specific routes and allow it only for specific addresses?

Hi there!

I added all routes using POST route (ex. under /myapi). How can I exclude someone of them and allow access only for specific IP addresses? Ex. I need to block access to <kong_url>/myapi/somecontroller/somemethod and allow access only for service which runs on a specific server with specific IP address.

Not sure that request-termination plugin may help me, does someone have any idea how to do that?


Check out - and let us know if that doesn’t do what you need.