7 points · by rishikeshs · 2y ago · 27 comments
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...
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.
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.