I put together a small page showing some of the information you can gather when a user visits a webpage.
IP Number : 321231232
IP Version : 4
IP Address : 22.214.171.124
Country Code : CA
Country Name : Canada
Region Name : Ontario
City Name : Toronto
Latitude : 43.670841217041
Longitude : -79.379325866699
Time Zone : -04:00
ZIP Code : M4Y 2Y5
Browser : Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36
Max concurrency: 4 cores
Screen width: 1920
Screen height: 1040
This data was retrieved from a database provided by ip2location.com.
They provide a simple to use script/database. I live near Toronto but the information isn’t as accurate as compared to some
location based look ups.
I could upgrade this database for $ and it would find an even closer location (getting warmer) but it’s still not as accurate as
I went around and compared what others were finding and the best database I could find was:
https://www.maxmind.com/en/geoip-demo => excellent database but expensive for personal use.
https://dev.maxmind.com/geoip/legacy/geolite/ => their legacy database
Their accuracy information. 86% for most locations/countries (US + Canada)
Sites found with google search for ip to location based searches.
http://www.ip2location.com => accurate
http://whatismyipaddress.com/ip-lookup => very accurate
http://www.iptrackeronline.com/ => more accurate
http://addgadgets.com/ipaddress/ => more accurate
http://www.infosniper.net/ => more accurate
http://geobytes.com/iplocator/ => less accurate
http://www.ip-tracker.org/locator/ip-lookup.php => doesn’t work with ip6