Hacker News new | ask | show | jobs
by evrimfeyyaz 2023 days ago
This is a fair point. I wish there was a way to get a visitor's IP without the need to call a server.

That being said, my website is already served through Cloudflare, and this is an endpoint Cloudflare provides for debugging purposes.

I think this is ethically safe, but legally it probably is not. I definitely agree.