cf-ip tool tracks your IP address, user agent and country code with Cloudflare services. It basically hits cloudflare trace url (https://cloudflare.com/cdn-cgi/trace).
Currently I am using pages.dev trace url due to ad-blocker issues.
Taken reference from Stackoverflow.