B
Bill
These two server variables should ALWAYS return the domain name of the host:
- Request.ServerVariables("SERVER_NAME")
- Request.ServerVariables("HTTP_HOST")
Under what circumstances can those server variables return the server names of domains
that are completely unrelated to the hosting website???
I know, it's not supposed to work that way, but it is. I'm seeing almost 30,000
accesses/day on an empty website, no less!
For each entry, as a debugging mechanism I decided to log all the
Request.ServerVariables entries, and that's when I noticed the outrageous behavior of
the above two server variables.
How is this technically, possible???
(I should note that Request.ServerVariables("HTTP_REFERER") always returns the proper IP
address for the website. Also, I believe I know WHAT is causing this traffic, but to
prevent defensive answers on this group I don't want to mention that yet.)
THANKS!!!
Bill.
- Request.ServerVariables("SERVER_NAME")
- Request.ServerVariables("HTTP_HOST")
Under what circumstances can those server variables return the server names of domains
that are completely unrelated to the hosting website???
I know, it's not supposed to work that way, but it is. I'm seeing almost 30,000
accesses/day on an empty website, no less!
For each entry, as a debugging mechanism I decided to log all the
Request.ServerVariables entries, and that's when I noticed the outrageous behavior of
the above two server variables.
How is this technically, possible???
(I should note that Request.ServerVariables("HTTP_REFERER") always returns the proper IP
address for the website. Also, I believe I know WHAT is causing this traffic, but to
prevent defensive answers on this group I don't want to mention that yet.)
THANKS!!!
Bill.