๐—œ๐—ฃ ๐—š๐—ฒ๐—ผ๐—น๐—ผ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ช๐—ถ๐˜๐—ต ๐—ญ๐—ฒ๐—ฟ๐—ผ ๐—˜๐˜…๐˜๐—ฒ๐—ฟ๐—ป๐—ฎ๐—น ๐—”๐—ฃ๐—œ๐˜€

Stop using geo APIs. Stop paying for keys. Stop adding lag.

Cloudflare Workers has a cf object. It gives you user data at the edge.

You get:

No lookups. No external servers. No keys. User IPs stay private. No third party sees them.

Keep these tips in mind:

Use request.cf. Your data is already there.

Source: https://dev.to/kamazaki/ip-geolocation-with-zero-external-apis-the-cloudflare-workers-cf-object-16e