Finding out calling address
Posted: Wed Mar 17, 2004 7:52 am
Hi guys,
Just wondering if anyone could tell me if there is any reliable way of telling what name was used to call my site.
What I am getting at is, if the site is called with my external IP addy, then I want to have all pages referred to with that addy, as opposed to my actual domain name. And vise versa.
Basically, I guess I will need to somehow capture the url used to view the current page ... not the referrer ... just the actual address in the address bar.
Any ideas? Thanks
Just wondering if anyone could tell me if there is any reliable way of telling what name was used to call my site.
What I am getting at is, if the site is called with my external IP addy, then I want to have all pages referred to with that addy, as opposed to my actual domain name. And vise versa.
Basically, I guess I will need to somehow capture the url used to view the current page ... not the referrer ... just the actual address in the address bar.
Any ideas? Thanks