-
Notifications
You must be signed in to change notification settings - Fork 0
4.7.3 Configuration Ip2location BIN File Code
Gurdeep Singh (Guru) edited this page Aug 12, 2024
·
2 revisions
BIN file is a binary file that contains ip2location database. ip2location provides database in 2 types, CSV and BIN. Benefit of lookup via BIN files is that you can directly load the BIN file in the memory (if the system has sufficient memory) and perform lookups. This make the lookups blazing fast.
admin@phpterminal:firewall(config)# set ip2location bin file code
...
OPTIONS: [DB3BINIPV6 | DB3LITEBINIPV6]
BIN FILE CODE (DB3LITEBINIPV6) : DB3LITEBINIPV6
SET IP2LOCATION BIN FILE CODE OUTPUT
...
FIREWALL DETAILS > IP2LOCATION_BIN_FILE_CODE : DB3LITEBINIPV6
...
admin@phpterminal:firewall(config)#
$firewall->setIp2locationBinFileCode('DB3LITEBINIPV6');
NOTE: In the example above, we are using the BIN file downloaded from lite.ip2location.com website. And DB3 is sufficient for PHPFirewall to filter traffic as per ip addresses and country/state(region)/city.