Torann / laravel-geoip

Determine the geographical location of website visitors based on their IP addresses.
http://lyften.com/projects/laravel-geoip
BSD 2-Clause "Simplified" License
2.11k stars 372 forks source link

Anonymous IP returning everything NULL #38

Closed donenvy closed 8 years ago

donenvy commented 9 years ago

ran across an IP address which returned no country code neither a default location. After investigation I found out why. On maxmind the IP is down as a anonymous IP address without a geoname_id code. Hence the IP a default location was not returned as the IP was found in the database but with no geo code. Hence everything returned was null instead of default location or an identifier for anonymous IP.

Could you advise on the L4 version what to add to take these anonymous IP's into account instead of returning everything NULL

Torann commented 8 years ago

This seems to be on maxmind's end. I could just do a check on your end before using the data