DEV Community

Discussion on: How to get user's current location details from IP Address

ssimontis profile image
Scott Simontis

I think it is very important to mention that if you choose to do this, you need to ensure you comply with all legal requirements imposed on you by your regions of service. GDPR will NOT look kindly upon code like this unless you clearly explain to the user what you are collecting and why BEFORE you collect any of said data.

I personally consider code like this incredibly invasive and feel like my experience has shown me that there are many greater insights that can be gathered without sacrificing user privacy.

snehalk profile image
Snehal Author

Yes you are right, I will consider and appreciate your suggestion.