How to allow some specific IP address to access my WCF Service

后端 未结 1 1462
粉色の甜心
粉色の甜心 2021-01-23 17:01

I have one WCF Service returns xml. I want only one IP address to access it for eg: 10.0.0.5

can some one tell me how can i do this. Please tell me other than Firewall a

相关标签:
1条回答
  • 2021-01-23 17:29

    You need to add ip filtering, something like next - https://stackoverflow.com/a/803813/182344

    Or use ServiceAuthorizationManager.CheckAccessCore where you get client IP from OperationContext.

    0 讨论(0)
提交回复
热议问题