4 ms·
Geo-IP through Cloudflare: <script id="cflocation"> window.CFLocation = {"lat":####,"lng":####};window.CFDsm=null; </script> See https://deve
by LeifCarrotson 2y ago
Geo-IP through Cloudflare:
<script id="cflocation">
window.CFLocation = {"lat":####,"lng":####};window.CFDsm=null;
</script>
See https://developers.cloudflare.com/network/ip-geolocation/ https://developers.cloudflare.com/network/ip-geolocation/.
Mine's off by more than 100 miles (Comcast Business fiber), it's not magic.
- tills13 2y agoIt's probably either just the lat long of the PoP or some magic based connection latency?
- aeyes 2y agoCloudflare only gives you the country
- irrational 2y agoThen how did the website end up just about a mile from my house?
- lights0123 2y agoNo. https://developers.cloudflare.com/rules/transform/managed-transforms/reference/#add-visitor-location-headers https://developers.cloudflare.com/rules/transform/managed-tr...