Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Geo-IP through Cloudflare:

    <script id="cflocation"> 
        window.CFLocation = {"lat":####,"lng":####};window.CFDsm=null;
    </script>
See https://developers.cloudflare.com/network/ip-geolocation/.

Mine's off by more than 100 miles (Comcast Business fiber), it's not magic.



It's probably either just the lat long of the PoP or some magic based connection latency?


Cloudflare only gives you the country



Then how did the website end up just about a mile from my house?




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: