I'm having trouble finding any information about this.
In web.config, is it possible to restrict access to just a single method/endpoint in a .svc/controller ? Or must one restrict access to the entire controller?
For example this works, but restricts access to the entire SVC:
<location path="ManagementService.svc">
<system.webServer>
<security>
<ipSecurity configSource="config\ipFilter.config" />
</security>
</system.webServer>
</location>
If I have two methods in my SVC, and I want one to NOT be filtered, can I instead write something like:
<location path="ManagementService.svc/DeleteUser">
<system.webServer>
<security>
<ipSecurity configSource="config\ipFilter.config" />
</security>
</system.webServer>
</location>
to restrict access only to a single method while leaving the other method reachable?
If the answer is NO it is not possible, what are the best alternatives to achieve this? Just checking IP in the code?