Difference between revisions of "GeoIP.dat file"

From AMule Project FAQ
Jump to: navigation, search
m (Notes)
m (Description)
 
Line 7: Line 7:
 
Binary format file containing a database of the physical location of IP addresses.  It is used by the GeoIP extension of php.  For more information on that, see the [http://www.php.net/manual/en/book.geoip.php PHP Manual - Geo IP Location].
 
Binary format file containing a database of the physical location of IP addresses.  It is used by the GeoIP extension of php.  For more information on that, see the [http://www.php.net/manual/en/book.geoip.php PHP Manual - Geo IP Location].
  
GeoIP.dat is published by [[http://www.maxmind.com/|MaxMind]].  To get the latest version of the file, or to download the APIs for using it, go to the [http://www.maxmind.com/app/geolite MaxMind GeoLite Databases] page.
+
GeoIP.dat is published by [http://www.maxmind.com/ MaxMind].  To get the latest version of the file, or to download the APIs for using it, go to the [http://www.maxmind.com/app/geolite MaxMind GeoLite Databases] page.
  
 
== Format ==
 
== Format ==

Latest revision as of 16:04, 20 June 2012

File

Name: GeoIP.dat

Location: ~/.aMule/

Description

Binary format file containing a database of the physical location of IP addresses. It is used by the GeoIP extension of php. For more information on that, see the PHP Manual - Geo IP Location.

GeoIP.dat is published by MaxMind. To get the latest version of the file, or to download the APIs for using it, go to the MaxMind GeoLite Databases page.

Format

Binary, and possibly proprietary.

Notes

The location from which to download GeoIP.dat would appear to be hard-coded into Preferences.cpp:

$ grep -n "GeoIP.dat" Preferences.cpp
1254:	s_MiscList.push_back( new Cfg_Str(  wxT("/eMule/GeoLiteCountryUpdateUrl"),
		s_GeoIPUpdateUrl, wxT("http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz") ) );