Hi, I want to know how to retrieve the IP address of the referring HTML page (not visitor address).
This is just for getting the visitor IP address.
echo $HTTP_SERVER_VARS["REMOTE_ADDR"];
Thanks in advance.
| SitePoint Sponsor |
Hi, I want to know how to retrieve the IP address of the referring HTML page (not visitor address).
This is just for getting the visitor IP address.
echo $HTTP_SERVER_VARS["REMOTE_ADDR"];
Thanks in advance.





$HTTP_REFERRER is what you are after I believe.
Please don't PM me with questions.
Use the forums, that is what they are here for.





With that you get the address of the referer and not the IP (but you could just simply extract the domain and look it up -> IPs)
- Son Nguyen
AdSpeed.com - Ad Serving and Ad Management Made Easy
Bookmarks