Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 31 lines (16 sloc) 0.507 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
=== Dependencies
sudo gem install ar-extensions
sudo gem install rubyzip


=== Installtion
rake db:create:all && rake db:migrate && rake db:test:prepare

rake geoip:download
rake geoip:import


=== Usage

http://localhost:3000/ip_ranges/123123123123.FORMAT
http://localhost:3000/geoips/whatsmyip

FORMAT can be xml or csv


the IP must be submitted as 12 characters, only numbers, no dots. padd with 0 if a block has
less than 3 chars.

Samples:
10.20.10.20 -> 010020010020
192.168.0.1 -> 192168000001




Something went wrong with that request. Please try again.