Re: Determine the customer country from the IP address
You'd actually be better off using the GeoIP service for that, however I should note that those types of lists are not generally accurate due to how often IP blocks are sold and resold and information is not updated. In either case the GeoIP service from Maxmind is better (there's a PHP extension for it).
An example is GeoIP says I live in Los Angeles California when in fact I do not but that's because the IP's delegations belong to MegaPath which is in LA.
|