"Mike Kanski" wrote:
I have to add some code to it to not allow execution of this script if the
page was called from the <img> tag i.e..
<img src=http://webname.com/page1.asp width=1 height=1>
The page should be opened in browser in order for the script it contains
to be executed. How do i acomplish that?
As far as IIS is concerned, a request is a request -- how the browser
chooses to dispose of the Response is immaterial. You can test this by
collecting the contents of the Request.ServerVariables collection and
storing them in a DB, then comparing the differences.
If the <IMG> only resides on a single script, then you might have a shot at
dealing with it by examining HTTP_REFERER.
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.