How do I secure ASP.NET web service to only allow relative path calling?

后端 未结 3 1021
一生所求
一生所求 2021-01-25 08:39

I have ASMX services for my web application that I would only like available to the same application.

Is there a way for the web service to only be accessible by the sam

3条回答
  •  再見小時候
    2021-01-25 08:48

    Two ways to do this:

    • Have the web services hosted on a different box. The main web box is on a publicly accessible IP (ie. in the DMZ), while the web service box is only accessible to the internal network.
    • You might be able to do this with sufficient networking gymnastics. For example, host the web services on the same box but a different IP, and have the firewall block any outside calls to that IP.

提交回复
热议问题