bobbyiliev / cf-geoip

Geo IP Lookup Cloudflare Worker Service

Home Page:https://cf-geoip.bobbyiliev.workers.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GEO IP LOOKUP SERVICE

Simple service that returns the country code of the IP address passed as an argument.

Mainly intended for use with the access summary script:

BASH Script to Summarize Your NGINX and Apache Access Logs

Demo URL

https://cf-geoip.bobbyiliev.workers.dev/

Endpoints

  • GET / - Returns your IP address and the country code
  • GET /?ip=<ip> - Returns the country code of the IP address passed as an argument
  • GET /:ip - Returns the country code of the IP address passed as an argument.

About

Geo IP Lookup Cloudflare Worker Service

https://cf-geoip.bobbyiliev.workers.dev/


Languages

Language:JavaScript 100.0%