Skip to content

4.7.1 Configuration Ip2location Keys

Gurdeep Singh (Guru) edited this page Aug 11, 2024 · 1 revision

Configuration - Ip2location - Keys

You can obtain keys from 3 ip2location websites.

  1. ip2location.io
  2. ip2location.com
  3. lite.ip2location.com

All 3 locations require you to signup to obtain the keys and they have free plans at ip2location.io and lite.ip2location.com websites. Once you have obtained those keys, you can add them to PHPFirewall via configuration and they will be used to make API calls to the .io site or download the database from other 2 locations (lite and full).

Setup ip2location.io key

Via CLI

admin@phpterminal:firewall(config)# set ip2location io key
...
ENTER KEY : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
...
FIREWALL DETAILS > IP2LOCATION_IO_API_KEY : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
...
admin@phpterminal:firewall(config)# 

Via PHP Firewall Class

$firewall->setConfigIp2locationIoKey('XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')

Setup ip2location key

Via CLI

admin@phpterminal:firewall(config)# set ip2location key
...
ENTER KEY : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
...
FIREWALL DETAILS > IP2LOCATION_API_KEY : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
...
admin@phpterminal:firewall(config)# 

Via PHP Firewall Class

$firewall->setConfigIp2locationKey('XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')