Re: [PHP] Re: geolocation
Michelle Konzack wrote: Am 2008-09-02 15:05:05, schrieb clive: Hi, Have any developed a site that determines a users location based on IP address, Im not looking for accurate locations, just what country they are coming from. I know I could possible get a list of IP blocks allocated to countries or make use of some web server to get the information, I just want to know how others are doing this? hüstel... This does not work for my (136) Servers and Dial-Up, DSL, Wifi-APs since I have 64 blocks of 256 IPs which I use between Iran, Turkey, Germany, france, Morocco, Algeria and other countries... Same for Compuserve or ALOL. So we have a few exceptions to prove the rule. Good. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: geolocation
This is a slightly OT but along the same lines. I've found that the main way that ISP's and large content hosts control who can access their site and from where is by using BGP routing (Border Gateway Protocol), and other advanced things that are beyond the control of the majority of webserver admins. It allows them to change the routing that information, which is for example, how your ISPs servers know where to forward your data packet to next. However with some funky router, you can get 'magic' IP addresses, like Akami and most ISP's DNS server have. E.g, You will request to access data on a certain Akami IP address, instead and taking 200ms to hit some server on the other side of the world, and come back, it could go to a server sitting in your nearest capital city in 50ms, which is great for video content, and AJAX calls. The thing is, someone in another country could request the same data from the same IP, and the request will automatically be sent to a completely different server, most likely that of one in their capital city (or at least the closest place that has an Akami server containing the required info). Above is just another example of how you can't purely rely on IP addresses, although it is the easiest thing from a webservers PoV, and usually right 90% of the time (as far as I am aware, although haven't tested, nor have any good ways of testing besides Traceroute). Michael Kubler *G*rey *P*hoenix *P*roductions http://www.greyphoenix.biz Michelle Konzack wrote: Am 2008-09-02 09:08:50, schrieb Schiz0: I use the GeoIP libraries. They work perfectly. YOu just need to install the pecl-GeoIP package, then make sure you keep the binary database up-to-date (from www.maxmind.com). http://php.net/geoip How does ths work with Compuserver or ALOL or even my IP's? We are using dynamicaly allocated IPs arround teh world... AOL in Germany is using IPs from the USA (ARIN) I use IPs from Germany (RIPE) but they are dynamicaly allocated in Iran, Turkey, Gemany or other Countries where I have POPs
Re: [PHP] Re: geolocation
At 9:56 AM +0200 9/21/08, Per Jessen wrote: Michelle Konzack wrote: Am 2008-09-02 15:05:05, schrieb clive: Hi, Have any developed a site that determines a users location based on IP address, Im not looking for accurate locations, just what country they are coming from. I know I could possible get a list of IP blocks allocated to countries or make use of some web server to get the information, I just want to know how others are doing this? hüstel... This does not work for my (136) Servers and Dial-Up, DSL, Wifi-APs since I have 64 blocks of 256 IPs which I use between Iran, Turkey, Germany, france, Morocco, Algeria and other countries... Same for Compuserve or ALOL. So we have a few exceptions to prove the rule. Good. /Per Jessen, Zürich I used to have a demo of that, but my server crashed and with it went the database. It was one of those stupid things of having everything backed up but the database. Too bad, I had it running for a couple of years gathering correct or not correct input from visitors. Just another of my lame attempts to do something of worth. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: geolocation
Am 2008-09-02 15:05:05, schrieb clive: Hi, Have any developed a site that determines a users location based on IP address, Im not looking for accurate locations, just what country they are coming from. I know I could possible get a list of IP blocks allocated to countries or make use of some web server to get the information, I just want to know how others are doing this? hüstel... This does not work for my (136) Servers and Dial-Up, DSL, Wifi-APs since I have 64 blocks of 256 IPs which I use between Iran, Turkey, Germany, france, Morocco, Algeria and other countries... Same for Compuserve or ALOL. The required IPs are allocated dynamicaly... Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: geolocation
Am 2008-09-02 09:08:50, schrieb Schiz0: I use the GeoIP libraries. They work perfectly. YOu just need to install the pecl-GeoIP package, then make sure you keep the binary database up-to-date (from www.maxmind.com). http://php.net/geoip How does ths work with Compuserver or ALOL or even my IP's? We are using dynamicaly allocated IPs arround teh world... AOL in Germany is using IPs from the USA (ARIN) I use IPs from Germany (RIPE) but they are dynamicaly allocated in Iran, Turkey, Gemany or other Countries where I have POPs Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: geolocation
clive escreveu: Hi, Have any developed a site that determines a users location based on IP address, Im not looking for accurate locations, just what country they are coming from. I know I could possible get a list of IP blocks allocated to countries or make use of some web server to get the information, I just want to know how others are doing this? If are using a specific method and know it to be robust and up to date please let me know. Thanks clive I use GeoIP from Maxmind, too, and I wrote a brief tutorial on how to use it. http://www.educar.pro.br/i_en/GeoIP/ -- zerof http://www.educar.pro.br/ Apache - PHP - MySQL - Boolean Logics - Project Management -- You must hear, always, one second opinion! In all cases. -- Let the people know if this info was useful for you! -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php