Skip to content
This repository has been archived by the owner on Aug 23, 2019. It is now read-only.

simplificator/geoip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

=== 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




Releases

No releases published

Packages

No packages published