Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Detecting entry url
- Robert Mark Bram
February 29, 2004, 6:33 am
rate this thread
Let's say I have a single web page.. but bought three different domains, all
of which point to it.
So I can type
and they will come to my page 'rob.htm'
Is there a way for to determine which url the user came from?
Thanks for any advice!
Re: Detecting entry url
Domains do not point to pages, they point to servers. You might have a
domain pointing to a server with some form of client side redirect on it.
In the redirect scenario? No, not with any degree of reliability. HTTP
includes the referer[sic] header which user agents may use to send the URI
of the previously visited resource, however this is optional, and often
spoofed. (Unfortunately, the (standard violating) spoofing is on the
increase thanks to certain 'privacy protecting' personal firewall
If you had three domains pointing at the same server (and not the redirect
scenario your question suggests) then it is a trivial matter in most server
side environments to read the requested domain, you could even do it in
shouldn't be depended upon for anything mission critical). The specifics
depend on the language you choose.
 If they want to hide the referer, why don't they just not send it?
Putting false data there is not helpful!
David Dorward <http://dorward.me.uk/
- » Cell background image does not display on some pages
- — Next thread in » HTML Markup Language