public
Description: The Ruby gem for querying Maxmind.com's GeoIP database, which returns the geographic location of a server given its IP address
Homepage: http://geoip.rubyforge.org/
Clone URL: git://github.com/cjheath/geoip.git
geoip /
name age message
file .gitignore Thu Nov 12 10:51:42 -0800 2009 Eric Wong's patch to use io-extra to handle for... [Clifford Heath]
file History.txt Thu Jul 23 03:26:00 -0700 2009 Updated to 0.8.1 to document the #close change [Clifford Heath]
file Manifest.txt Thu Jul 23 04:29:12 -0700 2009 new gem infrastructure created using newgem. In... [Clifford Heath]
file README.rdoc Mon Nov 09 13:50:46 -0800 2009 Removed erroneous MIT license from newgem [Clifford Heath]
file Rakefile Thu Jul 23 04:29:12 -0700 2009 new gem infrastructure created using newgem. In... [Clifford Heath]
directory config/ Thu Nov 12 10:51:42 -0800 2009 Eric Wong's patch to use io-extra to handle for... [Clifford Heath]
file geoip.gemspec Mon Nov 09 13:51:55 -0800 2009 Bumped version number to 0.8.5 [Clifford Heath]
directory lib/ Fri Nov 20 01:13:18 -0800 2009 Unassigned IP addresses - added message about t... [Clifford Heath]
directory script/ Thu Jul 23 04:29:12 -0700 2009 new gem infrastructure created using newgem. In... [Clifford Heath]
directory tasks/ Thu Jul 23 04:29:12 -0700 2009 new gem infrastructure created using newgem. In... [Clifford Heath]
directory test/ Thu Jul 23 04:29:12 -0700 2009 new gem infrastructure created using newgem. In... [Clifford Heath]
directory website/ Thu Nov 12 10:30:41 -0800 2009 Updated website files [Clifford Heath]
README.rdoc

geoip

DESCRIPTION:

GeoIP searches a GeoIP database for a given host or IP address, and returns information about the country where the IP address is allocated, and the city, ISP and other information, if you have that database version.

FEATURES/PROBLEMS:

This release adds support for ASN data files, thanks to Roland Matiz

SYNOPSIS:

  require 'geoip'
  GeoIP.new('GeoIP.dat').country("www.netscape.sk")
  => ["www.netscape.sk", "217.67.16.35", 196, "SK", "SVK", "Slovakia", "EU"]

  GeoIP.new('GeoIPASNum.dat').asn("www.fsb.ru")
  => ["AS8342", "RTComm.RU Autonomous System"]

REQUIREMENTS:

You need at least the free GeoIP.dat, for which the last known download location is <www.maxmind.com/download/geoip/database/GeoIP.dat.gz>, or the city database from <www.maxmind.com/app/geolitecity>. The ASN database location is <geolite.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz>.

This API requires the file to be decompressed for searching. Other versions of this database are available for purchase which contain more detailed information, but this information is not returned by this implementation. See www.maxmind.com for more information.

INSTALL:

sudo gem install geoip

LICENSE:

This version Copyright (C) 2005 Clifford Heath Derived from the C version, Copyright (C) 2003 MaxMind LLC

This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA