title: Restrict access to a specific controller by IP address in ASP.NET MVC Beta
body: <p>I have an ASP.NET MVC project containing an AdminController class and giving me URls like these:</p>
  <blockquote>
  <p><a href="http://example.com/admin/AddCustomer" rel="noreferrer">http://example.com/admin/AddCustomer</a></p>
  <p><a href="http://examle.com/Admin/ListCustomers" rel="noreferrer">http://examle.com/Admin/ListCustomers</a></p>
  </blockquote>
  <p>I want to configure the server/app so that URIs containing <strong>/Admin</strong> are only accessible from the 192.168.0.0/24 network (i.e. our LAN)</p>
  <p>I'd like to restrict this controller to only be accessible from certain IP addresses.</p>
  <p>Under WebForms, /admin/ was a physical folder that I could restrict in IIS... but with MVC, of course, there's no physical folder. Is this achievable using web.config or attributes, or do I need to intercept the HTTP request to achieve this?</p>