by LinuxBender · 2y ago · 0 comments
Are you downloading this database [1] and using it locally on your server?
The only reason I collect IP is for knowing location. So if I use browser location, is it allowed?
[1] - https://ico.org.uk/for-organisations/direct-marketing-and-pr...
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.