Re: Correlation between visitor's physical location and IP address
| From: | Jean-Arthur Silve | Date: | Fri, 15 Dec 2000 08:36:50 +0000 |
| Subject: | Re: Correlation between visitor's physical location and IP address | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-30483@lists.php.net to get a copy of this message | ||
You can see the liste below.
All IP associated to RIPE are for Europe (IANA for Pacific area, ARIN for Americas )
You can ask appropriate Whois server to TRY to know the coutry.
you can see an example et : http://mercure.eurovox.fr/ipc
here is the list :
000/8 IANA - Reserved Sep 81
001/8 IANA - Reserved Sep 81
002/8 IANA - Reserved Sep 81
003/8 General Electric Company May 94
004/8 Bolt Beranek and Newman Inc. Dec 92
005/8 IANA - Reserved Jul 95
006/8 Army Information Systems Center Feb 94
007/8 IANA - Reserved Apr 95
008/8 Bolt Beranek and Newman Inc. Dec 92
009/8 IBM Aug 92
010/8 IANA - Private Use Jun 95
011/8 DoD Intel Information Systems May 93
012/8 AT&T Bell Laboratories Jun 95
013/8 Xerox Corporation Sep 91
014/8 IANA - Public Data Network Jun 91
015/8 Hewlett-Packard Company Jul 94
016/8 Digital Equipment Corporation Nov 94
017/8 Apple Computer Inc. Jul 92
018/8 MIT Jan 94
019/8 Ford Motor Company May 95
020/8 Computer Sciences Corporation Oct 94
021/8 DDN-RVN Jul 91
022/8 Defense Information Systems Agency May 93
023/8 IANA - Reserved Jul 95
024/8 IANA - Cable Block Jul 95
025/8 Royal Signals and Radar Establishment Jan 95
026/8 Defense Information Systems Agency May 95
027/8 IANA - Reserved Apr 95
028/8 DSI-North Jul 92
029/8 Defense Information Systems Agency Jul 91
030/8 Defense Information Systems Agency Jul 91
031/8 IANA - Reserved Apr 99
032/8 Norsk Informasjonsteknologi Jun 94
033/8 DLA Systems Automation Center Jan 91
034/8 Halliburton Company Mar 93
035/8 MERIT Computer Network Apr 94
036/8 IANA - Reserved Jul 00
(Formerly Stanford University) Apr 93
037/8 IANA - Reserved Apr 95
038/8 Performance Systems International Sep 94
039/8 IANA - Reserved Apr 95
040/8 Eli Lily and Company Jun 94
041/8 IANA - Reserved May 95
042/8 IANA - Reserved Jul 95
043/8 Japan Inet Jan 91
044/8 Amateur Radio Digital Communications Jul 92
045/8 Interop Show Network Jan 95
046/8 Bolt Beranek and Newman Inc. Dec 92
047/8 Bell-Northern Research Jan 91
048/8 Prudential Securities Inc. May 95
049/8 Joint Technical Command May 94
Returned to IANA Mar 98
050/8 Joint Technical Command May 94
Returned to IANA Mar 98
051/8 Deparment of Social Security of UK Aug 94
052/8 E.I. duPont de Nemours and Co., Inc. Dec 91
053/8 Cap Debis CCS Oct 93
054/8 Merck and Co., Inc. Mar 92
055/8 Boeing Computer Services Apr 95
056/8 U.S. Postal Service Jun 94
057/8 SITA May 95
058/8 IANA - Reserved Sep 81
059/8 IANA - Reserved Sep 81
060/8 IANA - Reserved Sep 81
061/8 APNIC - Pacific Rim Apr 97
062/8 RIPE NCC - Europe Apr 97
063/8 ARIN Apr 97
064/8 ARIN Jul 99
065/8 ARIN Jul 00
066/8 ARIN Jul 00
067-095/8 IANA - Reserved Sep 81
096-126/8 IANA - Reserved Sep 81
127/8 IANA - Reserved Sep 81
128-191/8 Various Registries May 93
192/8 Various Registries - MultiRegional May 93
193/8 RIPE NCC - Europe May 93
194/8 RIPE NCC - Europe May 93
195/8 RIPE NCC - Europe May 93
196/8 Various Registries May 93
197/8 IANA - Reserved May 93
198/8 Various Registries May 93
199/8 ARIN - North America May 93
200/8 ARIN - Central and South America May 93
201/8 Reserved - Central and South America May 93
202/8 APNIC - Pacific Rim May 93
203/8 APNIC - Pacific Rim May 93
204/8 ARIN - North America Mar 94
205/8 ARIN - North America Mar 94
206/8 ARIN - North America Apr 95
207/8 ARIN - North America Nov 95
208/8 ARIN - North America Apr 96
209/8 ARIN - North America Jun 96
210/8 APNIC - Pacific Rim Jun 96
211/8 APNIC - Pacific Rim Jun 96
212/8 RIPE NCC - Europe Oct 97
213/8 RIPE NCC - Europe Mar 99
214/8 US-DOD Mar 98
215/8 US-DOD Mar 98
216/8 ARIN - North America Apr 98
217/8 RIPE NCC - Europe Jun 00
218-223/8 IANA - Reserved Sep 81
224-239/8 IANA - Multicast Sep 81
240-255/8 IANA - Reserved Sep 81
At 00:23 15/12/00 -0800, Police Trainee wrote:
you must keep in mind that there is no practical way in which to assure that all your visitors see the appropriate information. due to the very nature of the internet, if content is based soley on the user's ip, there will be *many* instances in which user's will see the unintende information. You should opt to include a user-selected option so the user can choose the appropriate information (perhaps prompt for the location at the very beginning, then set a cookie indicating the country, then display the appropriate information. The cookie (along with some additional programming) will ensure that the user does not simply go back and select another country to get those rates...) with regards to ip's, my suggestion is to do a reverse ip lookup (resolve the ip into a domain name). If the resolved name is indicative of a specific country, you can go from there. But keep in mind some ip's will not resolve into domain names. Perhaps you should then do a whois query to determine if the isp is based in a particular country. sounds like a lot of work to me, yet feasable. But don't ask me how to do it, i have no clue whatsoever. lol hope it gives you a starting point. -mark --- Stefen Lars <stefenlars@hotmail.com> wrote: Hello all I am currently working on a project where prices in 2 currencies must be displayed on a web site. Web visitors from Europe should be shown the price in Euro and those outside Europe should be shown the price in US Dollars. Due to a whole list of 'political' problems, the European customers should not be able to see the USD prices and the non-EU customers should not be able to see the USD prices. I know that sucks, but that is the way it is. I cannot change it, unfortunately. All price data is stored in a mySQL database and PHP4 is to be used to get this data into the HTML. ;-) The question is: How can one ascertain the physical location of a web visitors' computer when he/she comes to the web site? Is there a correlation between IP addresses and countries? If there is, where can one find a table illustrating this information? Has anyone attempted something like this? Two examples come to mind where a similar solution is in operation: 1. www.altavista.com : when I go to www.altavista.com I sometimes get a pop up window in German telling me that there also exists Altavista in German. The message is in German. Some how Altavista knows that I am in Germany. 2. www.imdb.com : when I look at the details of any movie, I see a link to amazon.de to buy that movie. I can hardly think that anyone outside Germany would get that link. Somehow these two sites 'know' where I am physically located. Now, how do they do that? If anyone can help me, I would LOVE to here from you! /S _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net ===== *****************************************************---------------------------------------------------------------- Le simple fait de passer par la fenetre ne suffit pas a la transformer en porte.* WebHosting from $15/mo! (25mb) * * CGI,PHP,SSL,MySQL,SSI,Perl,C/C++,PGP,PGP mail, ** shopping cart,stats,counter,mailing list manager, * * online web-based control panel,ftp,anon ftp,more! ** NO SETUP FEES! NO TRANSFER FEES! ** Visit www.policetrainee.com for more information! * __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net