@Jos that’s interesting. I didn’t know about freegeoip.net! 2 things though:
1. Your code is calling `http://freegeoip.net/json/github.com/".$_SERVER['REMOTE_ADDR']` but I don’t think the `/github.com/` should be in there. To query the database the IP/hostname should be the first thing after the format (`/json/`).
2. An IP address constitutes personal data under GDPR. I wonder if it is allowed to send the IP address of a visitor off to a third party without their explicit consent at all. (Not to mention a third-party service hosted outside of the EU.) You might have to run freegeoip locally or depend on the free GeoLite2 database yourself.