Difference between revisions of "GeoIP.dat file"

From AMule Project FAQ
Jump to: navigation, search
(Created page with '== File == '''Name:''' ''GeoIP.dat'' '''Location:''' ''~/.aMule/'' == Description == Binary format file containing a database of the physical location of IP addresses. It is u…')
 
m (Description)
 
(One intermediate revision by the same user not shown)
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 ==
Line 17: Line 17:
 
<pre>
 
<pre>
 
$ grep -n "GeoIP.dat" 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") ) );
+
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") ) );
 
</pre>
 
</pre>
  
 
[[Category:Program Files]]
 
[[Category:Program Files]]

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") ) );