Zonkd
Very Senior Member
Which website did you choose to curl for geoip data? There’s a bunch of them out there. I’ve seen a few shutdown and some others spring up. I stopped using them after someone online pointed out the risk of curl-ing any site, especially obscure ones, because they could send back malicious script and you’d never realise it. What’s your take on this?
Edit: using the maxmind geoip database obviously would allow it to be done speedily without internet or potential security vulnerabilities of curling a third party site. Plus they have lookup limits and block you if you hammer them.
Edit: using the maxmind geoip database obviously would allow it to be done speedily without internet or potential security vulnerabilities of curling a third party site. Plus they have lookup limits and block you if you hammer them.
With a little push from insomnia and bordem, I looked into this a-little further. I was able to achieve the desired result without a third party binary/database, but it came at a pretty extensive performance cost.
The problem is to-do this it requires a curl request for every listed entry. With the stat page this can mean hundreds of requests, which are slooooooooow. The best case scenario here increased total runtime on my AC86U from 6s => 20s which personally I don't find a good trade off. I'll see if adding this information makes sense in smaller use cases (individual ip lookup etc), but on the stat page as a whole it just not worth it right now.
Last edited: