How can I get a custom country without querying it for other web services?
4 answers
Well, you always need a third party, you may need to make a dictionary for the countries allocated to the IP ranges and check for each visit to its range. It will also be inaccurate 100%, but possibly 95%. The website that gives ip ranges starts at: https://www.countryipblocks.net/country_selection.php
0
source to share
Below are two free databases commonly used by developers.
IP2Location LITE
GeoLite2
http://dev.maxmind.com/geoip/geoip2/geolite2/
Both are required attributes to use.
0
source to share