1

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 and IIS

Uttam Kumar
  • 31
  • 1
  • 5
  • You should be able to check the IP in the request header. This isn't 100% foolproof, as it can be spoofed, however. – Tim Oct 18 '12 at 04:54

1 Answers1

1

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.

Community
  • 1
  • 1
RredCat
  • 5,259
  • 5
  • 60
  • 100