denasio — 2012-09-05T07:33:08-04:00 — #1
I've created a PHP script (combined with a MySQL database) that looks up the country for the ip address.
Can you guys check and see if your country is displayed correctly?
cpradio — 2012-09-05T07:39:26-04:00 — #2
It got mine correct
beingtomgreen — 2012-09-05T08:13:57-04:00 — #3
Got mine right as well.
Is this code you are going to be releasing?
guido2004 — 2012-09-05T08:19:53-04:00 — #4
spacephoenix — 2012-09-05T15:42:09-04:00 — #5
Got mine correct as well. Don't forget if needed to test against someone who uses a proxy in a country different from their own
pamela1991 — 2012-09-05T16:14:45-04:00 — #6
ralphm — 2012-09-05T19:15:34-04:00 — #7
lampcms_com — 2012-09-05T19:36:26-04:00 — #8
That's amazing. Can you narrow it down by state, city?
starlion — 2012-09-06T09:29:08-04:00 — #9
Download a free database to do it, lampcms.com; I dont recall if MaxMind give a free version of their city database, but they certainly do the country level and i think the state level.
Every IPv4 address can be represented as an unsigned 32-bit integer; as IP's are assigned by block, any IP can be tracked down using such a database and a simple BETWEEN comparison.
cups — 2012-09-07T09:29:56-04:00 — #10