Brett
Brett

Reputation: 1973

How do I limit my WCF service to only be called by sites on the same servers?

I've been asked to write a WCF service which exposes some of our vehicle stock to our other websites.

The only calling clients will be web pages which will be hosted on the same web servers as the WCF service itself.

I'm having real trouble understanding the authentication options (which will be username and passwords stored in SQL) in order to authenticate but also how to limit the service just only be called by our website(s).

I want to limit the service to only be called by sites on the same servers, can I restrict the service to only be accessible by 'itself' and would that address be 127.0.0.1?

I've read loads of articles about this aspect of WCF services and I'm totally baffled.

Any help would be greatly appreciated.

Thanks

Upvotes: 1

Views: 526

Answers (3)

If your WCF services are IIS-hosted, you can put IP based restriction, like this.

Upvotes: 0

JohnC
JohnC

Reputation: 842

Use the Net.NamedPipes binding. It only supports local-machine connections.

Upvotes: 0

Karl Anderson
Karl Anderson

Reputation: 34844

This is slightly old, but I still think WCF IP Filter applies to what you are trying to do.

Upvotes: 1

Related Questions