https://github.com/jonico/lookup-geo-ip
Looking up geo-ip of requests
https://github.com/jonico/lookup-geo-ip
Last synced: about 1 month ago
JSON representation
Looking up geo-ip of requests
- Host: GitHub
- URL: https://github.com/jonico/lookup-geo-ip
- Owner: jonico
- Created: 2024-04-18T10:15:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-18T13:08:03.000Z (about 2 years ago)
- Last Synced: 2025-03-03T16:14:55.878Z (over 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lookup-geo-ip
This repository contains a Node.js application that looks up the geographical location of incoming HTTP requests based on their IP addresses.
## Features
- Retrieves the IP address of incoming requests
- Resolves the hostname for the IP address
- Determines the geographical location (city, region, country) of the IP address
- Handles 'x-forwarded-for' headers for requests coming through proxies
- Logs request headers and their values to the console
- Includes request headers in the HTML response