title: Is it possible to configure a location in Web.config to only allow local connections
body: <p>I've got a page in an ASP.Net app (its Mvc actually but not important) and I would like to only allow connections to this page from the local machine.  I would love to do something like this in Web.config:</p>
  
  <pre><code>&lt;location path="resources"&gt;
    &lt;system.web&gt;
      &lt;authorization&gt;
        &lt;allow ips="local"/&gt;
      &lt;/authorization&gt;
    &lt;/system.web&gt;
  &lt;/location&gt;  
  </code></pre>
  
  <p>I know this is possible with a simple check in the page code behind (or controller) and <a href="https://stackoverflow.com/questions/1075618/limit-access-of-asmx-web-service-to-specific-ip-addresses/1076026#1076026">its even possible just with IIS configuration</a> but I would love a Web.config config as this would be the most elegant solution in my opinion.  Anyone know if this is possible?</p>