Git Product home page Git Product logo

4thel00z / geoipd Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 170 KB

๐Ÿ•ต๐Ÿพโ€โ™€๏ธ๐Ÿ•ต๐Ÿฟโ€โ™‚๏ธ Find out who snoops around on your server using the GeoLite2 database of MaxMind and go !

License: GNU General Public License v3.0

Dockerfile 0.26% Makefile 3.93% Go 92.97% Shell 2.84%
geolocation triangulation geoip geoip2 geoip-location maxmind maxmind-geoip go golang

geoipd's Introduction

geoipd

geoipd-tests geoipd-logo GitHub release (latest by date)

What this project is about

This is the geoipd tool. It's intention is to provide a simple HTTP server which uses the MaxMind GeoLite2 Database to:

  • translate between IPs to geo locations
  • render IPs on a map

asciicast

All the usages of this software have to comply with maxmind's end user license agreement. I distance myself from usages that do not comply with the aforementioned end user license agreement.

Example rendering

This is the example rendering that was rendered by locating the ip adress 1.1.1.1:

geoipd-rendering

How do I install it ?

Pick one of the release tarballs.

If you have linux machine with amd64, you can use this oneliner instead:

curl -s https://api.github.com/repos/4thel00z/geoipd/releases/latest |grep "browser_download_url"| cut -d '"' -f 4| grep linux| grep amd64| wget -qi -

How to download the database

You need to enter a your MaxMind License key which you can obtain from here: https://www.maxmind.com/en/accounts/<user-id>/license-key In an .env file like so:

MAX_MIND_KEY=<enter you key>

then you can update/download the database from inside this repository. Run make run afterwards to have a new working geoipd instance under build/geoipd.

How do I run it ?

After creating a new project like above you can simply run:

make run

or

just run

if you have just installed. Running make help will show you the rest of the targets.

License

This project is licensed under the GPL-3 license.

geoipd's People

Contributors

4thel00z avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.