Page 1 of 1

obtaining remote address and other info

Posted: Sat Sep 17, 2005 1:26 pm
by davei234
Hi,

I've been trying to find out how to obtain info from the visitor to a website. I've found that using the variable $_SERVER['REMOTE_ADDR'] will get me their ip address, however on some stat sites I see them obtain data as to their location and service provider. Is this done using a secondary search of the ip address? If so, how do you do that?

Thanks,
Dave

Posted: Sat Sep 17, 2005 1:35 pm
by hawleyjr
Yes, it is done by doing a search on the IP Address. However, IP addresses are not reliable for this information. it just becomes one big guessing game....

Posted: Sat Sep 17, 2005 1:58 pm
by feyd
search around for GeoIP

Posted: Sat Sep 17, 2005 2:05 pm
by Simulacra
I'm not to sure, but I think its either

REQUEST_URI or HTTP_REFERER to be put into $_SERVER['']

Posted: Sat Sep 17, 2005 2:09 pm
by feyd
Simulacra wrote:REQUEST_URI or HTTP_REFERER to be put into $_SERVER['']
neither of those will tell you much about the user. The first will tell you the URI they requested on your server (if present), while the latter will tell you the URL the user was supposedly on before the current page request (very unreliable and very easily faked)

Posted: Sat Sep 17, 2005 2:10 pm
by Simulacra
As I said I'm not to sure....