Function
Arg | Description | Type |
---|---|---|
ip | IP Address to lookup. | string (required) |
db | Path to the MaxMind GeoIP Database. | string (required) |
Lookup an IP Address using the MaxMind GeoIP database. You can get a copy of the database from https://www.maxmind.com/. The database must be locally accessible so this probably only makes sense on the server.