I've MVC WebAPI exposed and would like to only accept a request from 127.0.0.1. The reason being that the application that is going to consume this WebAPI function will be hosted on same IIS server as virutal application.
Could someone please suggest how above can be achieved and whether there's much elegant solution.