Ask HN: I collect IP address of users, but do not store it. Am I GDPR compliant?
I just store the country name.
I just store the country name.
I am not a lawyer and this is not legal advice. Are you sending the client IP to a third party API? There are existing questions and answers about this [1] but ultimately as others said one should at least consult a lawyer. It's not even 15 minutes of their time. Consider using lookup tools that download the database [2] to your server to avoid sending the client IP anywhere even if it turns out to be in a gray area to do so. Even if not for a legal reason, technically this removes a real time dependency on a 3rd party website.
[1] - https://law.stackexchange.com/questions/57557/does-informati...
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.
Many other locales say the same:
California Consumer Privacy Act: https://iapp.org/news/a/are-ip-addresses-personal-informatio...
Canada PIPEDA: https://www.priv.gc.ca/en/privacy-topics/privacy-laws-in-can...
UK ICO: https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-re...
According to your link: "Personal data relating to GDPR does not cover: ... Properly anonymized data ..."
So OP might could hash the ip address (something better than md5, ideally) and save that.
Hashing, possibly with a secret salt, is sufficient.
They’ll just tell you to put up more banners and store less data and then they’ll charge you for it.
Evaluate the risk here. It’s a (presumably) small personal/side project. As a person based in the US, I wouldn’t give this a second thought.