News for hackers. Stuff that matters.
Re:Show HN: JavaScript IP Country lookup in under 500KiB by quickthrower2 on Wednesday May 05, 2021 @07:25AM (#27048551)
Dumb question? Server side or client?
Re:Show HN: JavaScript IP Country lookup in under 500KiB by vijayer on Wednesday May 05, 2021 @01:38PM (#27053030)
It uses filesystem to read the lookup table, so it's server side. But looks easily adaptable to client.
Re:Show HN: JavaScript IP Country lookup in under 500KiB by maytheforth on Tuesday May 04, 2021 @08:01PM (#27044423)
Nice! How accurate is it?
Re:Show HN: JavaScript IP Country lookup in under 500KiB by rroim on Tuesday May 04, 2021 @09:01PM (#27044858)
It's using IP2Location Lite (it's the only offering we found that had a lax enough license while still being accurate). They have an accuracy report here that measures it at 99%+: https://www.ip2location.com/data-accuracy

There's also this third party report which measures 80% overall accuracy, but likely higher practical accuracy (eg accuracy in the US/Europe is much higher than 80% and most of your customers might be there): https://www.cl.cam.ac.uk/~nz247/publications/JSAC2011-Geoloc...