How can I restrict my pvt api like /pvt to be restricted outside my network

I have a service and that has both /public and /pvt apis, i want to restrict /pvt to my internal ips how do i do.

Use this IP Restriction plugin | Kong

I dont think ip restriction plugin will be handy if i need path based restrictions as i mentioned.

can u share some example if u have configured for path based