Notes · Lab Notes
CloudFront tells you the visitor's city, with no permission prompt
· aws · cloudfront · privacy
With the right origin request policy, CloudFront adds CloudFront-Viewer-Latitude, -Longitude, -City, -Time-Zone and more to each request. That's city-level accuracy from the IP: enough to show each visitor the real sun and weather over their own city. I round the coordinates to ~1 km, send them back only to that visitor, and never store them.