Public IP and request diagnostics utility, inspired by ident.me and ifconfig.co.
- Browser requests to
https://ip.offsec.nlrender a small diagnostics page. - CLI-style requests such as
curl https://ip.offsec.nlreturn only the public IP plus a newline. Accept: application/jsonor/jsonreturns structured request metadata.
curl https://ip.offsec.nl
curl https://ip.offsec.nl/ip
curl https://ip.offsec.nl/json
curl https://ip.offsec.nl/headers
curl https://ip.offsec.nl/asn
curl https://ip.offsec.nl/country
curl https://ip.offsec.nl/city
curl https://ip.offsec.nl/colo
curl https://ip.offsec.nl/uanpm install
npm test
npm run devThe app is designed for Cloudflare Pages advanced mode. Deploy the public/ directory as the Pages output directory. The _worker.js file handles dynamic responses and falls back to static assets.