Giter VIP home page Giter VIP logo

iplocator's Introduction

ipLocator

Build Status

ipLocator - a fast basic Geo-Ip Server made with Go

(v. 01/07/2015 Meets maxmind.com 2015 database format. See comments in code for options.)

===

Dependencies

(1) pure go key/value store boltdb (https://github.com/boltdb/bolt)

go get github.com/boltdb/bolt

(2) bloomfilter

go get github.com/AndreasBriese/bbloom

===

Usage

Configure ipLocator with command line options (default values shown)

-download_DB=false: Reload database from maxmind.com and Restore database from GeoLite-Data

-ip="": enter a csv-list of IP

-json=false: return JSON

-new_DB=false: Restore database from maxmind.com GeoLite-Data

-server=false: run server at localhost:9000

Quickstart:

#####Linux/MacOSX/Windows

go run ipLocator.go -download_DB=true -server=true
  1. downloads the maxmind.com GeoLite2 - CSV .zip database folder
  2. unzips it
  3. loads csv-data into programs database ./iplocs.bdb (~ 500 MB)
  4. starts server at localhost:9000 (--> const ServerAddr within ipLocator.go)

===

As of 2014-08-17 a demo server is running at https://oo.bootes.uberspace.de

As of 2014-08-17 a demo server is running at http://bric.lepus.uberspace.de:61165

iplocator's People

Contributors

andreasbriese avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.