RE: [PHP] IP and countries -- Discussion Continues
| From: | David Robley | Date: | Wed, 08 Nov 2000 04:08:02 +0000 |
| Subject: | RE: [PHP] IP and countries -- Discussion Continues | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-24257@lists.php.net to get a copy of this message | ||
On Wed, 08 Nov 2000, WILSON, Nick wrote:
> If I log using the REMOTE_ADDR and resolving the address to a
> name, ie
>
> gethostbyaddr($REMOTE_ADDR)
>
> it gives me the remote name of each user, which usually includes
> a country, ie
>
> dm1-39.triode.net.au
> myangup0.connect.com.au
> tycho-165-227-58-95.tychonet.com
> etc etc
>
> Which to me would indicate country, ie Aus, Aus and USA ??
>
> Is there more to this that I am missing ? Sure it may be
> possible for someone to log on to a remote server in a remote
> country and then issue a request for a web page, but the
> majority of people simply dial in and then surf, hence their
> ISP is the normal point of contact ?
Well, how about:
bash-2.03$ traceroute www.mediamakeup.com.au
traceroute to www.mediamakeup.com.au (209.81.157.200), 30 hops max, 40 byte packets
1 129.96.231.2 (129.96.231.2) 1.555 ms 2.199 ms 2.631 ms
2 lis255.atm1-0.central.saard.net (203.21.37.2) 2.236 ms 2.29 ms 2.123 ms
3 ATM1-0-0-5.ia4.optus.net.au (202.139.32.205) 26.714 ms 26.458 ms 26.285 ms
4 GigEth1-0-0.rr2.optus.net.au (202.139.190.22) 28.23 ms 28.626 ms 30.026 ms
5 POS5-0-0.la1.optus.net.au (192.65.89.214) 348.945 ms 348.2 ms 351.327 ms
6 acr1-serial2-3-2-0.Anaheim.cw.net (208.172.35.141) 340.465 ms 340.914 ms
340.602 ms
7 corerouter1.Bloomington.cw.net (204.70.9.147) 344.439 ms 341.948 ms 339.697 ms
8 core1.Greensboro.cw.net (204.70.4.209) 406.286 ms 403.007 ms 404.035 ms
9 border3-fddi-0.Greensboro.cw.net (204.70.80.19) 412.163 ms 412.516 ms 505.398 ms
10 204.70.83.6 (204.70.83.6) 649.01 ms 442.492 ms 453.634 ms
11 core1-H3-0.detroit.corecomm.net (208.150.63.130) 491.949 ms 474.171 ms 453.219 ms
12 core1-S1.lansing.corecomm.net (208.150.58.78) 449.321 ms 472.355 ms 436.336 ms
13 209.81.155.69 (209.81.155.69) 443.071 ms 509.703 ms 476.732 ms
14 winntcluster.shanje.com (209.81.157.200) 471.385 ms 478.825 ms 468.056 ms
bash-2.03$
That's the website for an organisation here in Adelaide, Australia. The
domain doesn't indicate the actual location of the box :-)
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA