У меня есть проект ASP.NET MVC, содержащий класс AdminController и давая мне URls, как эти:
Я хочу настроить сервер/приложение таким образом, чтобы URI, содержащие /Admin, были доступны только из сети 192.168.0.0/24 (т.е. из нашей локальной сети)
Я бы хотел ограничить доступ к этому контроллеру только с определенных IP-адресов.
Под WebForms/admin/была физическая папка, которую я мог ограничить в IIS... но с MVC, конечно, нет физической папки. Это достижимо с помощью web.config или атрибутов, или мне нужно перехватить HTTP-запрос для достижения этой цели?