Hacker News new | ask | show | jobs
by sradman 2153 days ago
TECHNIQUE: use the proprietary HTTP Request headers available through CDN/Cloud providers like Cloudflare Workers' cf-country [1], Amazon CloudFront's CloudFront-Viewer-Country [2], and Google App Engine's X-Appengine-Country/-Region/-City/... [3] to get client Geolocation data.

[1] https://developers.cloudflare.com/workers/reference/apis/req...

[2] https://docs.aws.amazon.com/AmazonCloudFront/latest/Develope...

[3] https://cloud.google.com/appengine/docs/standard/go/referenc...

1 comments

Thank you - I was about to ask if this sort of information was available through other cloud providers.