I've got a classic ASP page making an XMLHTTP request to my ASP.net (c#) page, "doSomething.ashx". They are both hosted on the same server.
How can I guarantee that the request came from the local server, to stop malicious users visiting the doSomething.ashx page and making false requests?
Edit:
Stupid me forgot I could pass username + pw through, but will:
HttpContext.Current.Request.IsLocal
Work just as well? Or could this suffer from creative hackers?