Spent the last three weeks rebuilding the geo layer on our site because the old MaxMind integration was flagging half of Ohio as... well, we can't even serve Ohio, so that part's moot. Whole thing started because legal wanted a new blocked region added and the old code had state rules hardcoded in like four different places. Fun week.
The actual problem isn't the lookup, it's VPN detection. Cloudflare's bot score catches the lazy ones. Residential proxies and mobile carrier IPs walk right through. And then legit players on T-Mobile get flagged because their CGNAT address geolocates to a datacenter in Kansas. Support tickets pile up, refund requests, the occasional chargeback. Nobody wins except the proxy vendors.
What I landed on: layered it. MaxMind for the base lookup, cached in Redis for 24h, then a second pass against a proxy/VPN ASN list, then a manual whitelist table for known carrier ranges that we keep patching by hand. Sounds clean on paper. It isn't. We still eat roughly 2-3% false positives and I get a Slack ping every time someone important complains.
Honestly the whole thing is security theater. The guys who want around it will get around it. I've watched dudes in banned states do it with a $4 VPS and a fingerprint spoofer. Meanwhile someone's grandma in Nebraska can't deposit because her ISP routes through Denver.
Curious what the rest of you run in prod. Anyone using IPQualityScore or the IP2Location VPN addon? Worth the per-lookup cost or am I just paying to feel like I did something?
Been lurking this section for ages before posting, the payment and queue threads alone saved me twice
https://websiteforums.info/forums/php-and-backend-development.6/