Is there a way to tell the network location of visitors to your site? I'm looking to see something like "verizon internet services inc." or "comcast cable communications inc."
mattclayb
3:27 pm on Jul 20, 2009 (gmt 0)
Depending on your PHP configuration you can use $_SERVER['REMOTE_HOST'] or pass an ip address to gethostbyaddr() to find the visitors hostname. eg - $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); or $hostname = $_SERVER['REMOTE_HOST'];
this may not return a nicely formatted host name like you have specified, but it will give you the info you need, you could then clean up the string.
Jhet
3:40 pm on Jul 20, 2009 (gmt 0)
I'll give that a try, thanks!
I got the network locations from Google Analytics. That may be why they look like that.