m1keread wrote:
...
What I dont want is "billy the script kiddie" copying my HTML page and sending his own emails via my web service.
Therefore, I was hoping for a way to stop any invocation of the web service except those coming from SERVER01.
...
So, it is as I described, then - you need to secure your Web Service.
I'm not a Web Developer, so I'm not familar with what is currently around for this. But if I were to
design something like this, then the first thing you need to do is take the non-trusted party out of loop. ie Not have the client (Web Browser) use the Service.
However, if for some reason you
have to involve the (non-trusted) client, then I would have the Web
Server pass a token (permission) to the client, which
must in turn supply this token to the Web
Service. The token would need to be volatile. How volatile, would be dependent upon your needs. For example, it could even be a one-to-one, per message token, and/or expire after some amount of time, etc.
So the flow would be something like:
The Web Server obtains a batch of tokens from the Web Service, which it dispenses to the Browser as a hidden field (or whatever), and the javascript running on the Browser, passes the token on to your Web Service as a parameter. Your Web Service then validates the token, responding accordingly...