Hi,
I am trying to restrict image access to only when they are loaded via an html img element
Currently, a user can view images via an html img element and by directly entering the image's url in the browser.
Is there an asp.net object property that can be used to determine how this image was requested?
I tried to determine this programatically, through the referrer and the request.url. But the page img element and the browser url both appear to request the image in the same way. As a result, the UrlReferrer helps in only some scenarios.
I am currently reading the UrlReferrer and Request.Url though a custom Image Handler.
Thanks,
Mark
Go to the complete details ...