I am fetching information of the client by this CF API: https://workers.cloudflare.com/cf.json
I am planning to build some middleware based on IP, so expected that I would get the user IP from that but I did not. Instead that I saw a field seems to help me do the same thing: ja3Hash
I am not an expert in security, can you tell me is ja3Hash unique and fixed for a computer with a static IP?
It doesn’t really have anything to do with IPs though, and is simply for fingerprinting the SSL/TLS connection of a client, looking at its TLS handshake. While it can provide unique information about the client, it’s not guaranteed to be consistent for a computer with a static IP. Things like the browser used, software updates, and many other factors can cause the JA3 hash to change. It cannot be used as a reliable way of tracking an individual computer or IP address.
The feature is generally only available to Enterprise customers. That endpoint is currently there for wrangler/miniflare to get real values when developing locally, so use it at your own risk. It might disappear or return different/incorrect values at any time.