5 ms·
What if you perturbed the last few bits of the address? Let's assume IPv4 for the discussion. Any given IPv4 address, even if subnetted, is going to have a so
by kazinator 2y ago
What if you perturbed the last few bits of the address?
Let's assume IPv4 for the discussion. Any given IPv4 address, even if subnetted, is going to have a solid 8 bits at the bottom that all belong to the same network, no?
If the user is 123.45.67.89 but you actually query the database using 123.45.67.17, you have not divulged the user's IP address. Yet it's vanishingly unlikely it will result through the wrong country.
The result could we put into a local cache, where the key is just 123.45.67.X.
- rishikeshs 2y agoThis is an interesting approach. So for every ip, I just remove the last part and fetch country right?
- kazinator 2y agoThere are probably downsides, such as the IP still indicating a particular neighborhood in a particular city. Or a company or institution.
- Bender 2y agoAgreed, this is why I would get advice from a lawyer because a /24 is still a very specific location and GDPR uses vague language about location.