What is the most applicable solution to detect which country an ip belongs to?
问题 Someone recommended cdn, And is it accurate in judging where the IP address belong to? How is it done? Is there a better solution? 回答1: Try hitting the pidgets geoip service (it uses the maxmind database) http://geoip.pidgets.com 回答2: There no fixed rules that can tell you which IP belongs to which country. It depends on which company owns the IP range at a given time and therefore can change as the ownership changes. You therefore either need to keep up an up to date database about which