Simply update the service with the name of your custom service and add it to the services specific configuration section with the class value as the custom classname. Services are stored in the GeoIP's config file config/geoip.php. IPFINDER_API_KEY = YOUR_API_KEY 'service' => 'ipfinder', Custom Service Register at ipfinder.io to get api key and add it into your env file as: IPGEOLOCATION_KEY = YOUR_API_KEY 'service' => 'ipgeolocation', IPFINDER API GeoLite2 data is also available as a web service in the GeoLite2 Country and GeoLite2 City web services. The GeoLite2 Country, City, and ASN databases are updated weekly, every Tuesday. Register at ipgeolocation.io to get api key and add it into your env file as: GeoLite2 databases are free IP geolocation databases comparable to, but less accurate than, MaxMind’s GeoIP2 databases. MaxMind offers free and paid databases with the most up-to-date and accurate data available.
#MAXMIND COUNTRY DATABASE LICENSE KEY#
Register for a license key and user ID at 'service' => 'maxmind_api', IPGEOLOCATION API The IP Geolocation by MaxMind add-on is a professional solution that adds the ability to determine the user’s location by IP address using the MaxMind databases. Optimization Tip: When using the database option I don't like having the downloaded database in my git repository, so I have my deploy system run the geoip:update during the build process before it's deployed to the servers.
Added alternative database for Country Code Lists and Settings. Looks like CSF Firewall v14.00 was released to switch away from using Maxminds GeoLite2 database for Country code lookups for new CSF Firewall installs while older CSF Firewall installs continue to use Maxminds GeoLite2 databases. If you send more than 10 requests per day to dl., please copy and self host the files.
Note: The geoip:update command will need to be ran before the package will work. CSF Firewall v14.00 Country Code Changes. Last Updated Maxmind : October 2021 DB-IP : October 2021 sometimes dl. is may be available only via IPv6. Along with the URL of where to download the database from when running the php artisan geoip:update. The database location to used is specified in the config file in the services section under maxmind_database. They offer a free and pro service 'service' => 'ipapi', MaxMind Database
#MAXMIND COUNTRY DATABASE INSTALL#
Before using the MaxMind driver, you will need to install the appropriate package via Composer: