basically, people use HTTP_REFERER header or ServerVariables to identify who is trying to retrieve the resource, you can check Request.UrlReferrer in your code and redirect to somewhere else if it is not from your own site, but you should consider to write a HttpModule or an ISAPI dll to do it, see