Skip to content

scaredos/iplookup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation

IPLookup

  • A simple and fast IP Information API written in Go
  • There is a public deployment of this API available at ip.ddos.studio (Unavailable)

Prerequisites

  • You must have GeoLite2 databases
  • Install all dependencies
    • Install Go
    • go get github.com/oschwald/maxminddb-golang

How to run

  • You can run it via the following commands:
    • go build httpserver.go && ./httpserver OR
    • go run httpserver.go
  • Now open your browser and go to http://localhost:3600/v1
    • For other deployments, replace localhost with your server IP address

Features

  • lookup

    • Returns information about the provided IP address
    • Example response available here
  • ip

    • Returns information about the client's IP address
    • Same response as lookup

Dependencies

FAQ

  • What is a bogon?
    • I use the term bogon to mean an IP address that is unregistered, invalid, or out of use.

About

Simple IPLookup built with GeoLite2

Topics

Resources

Stars

Watchers

Forks