Generate ip-to-country.bin file from ip-to-country.cvs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# use for WordPress Plugin: Show Useragent | |
# https://github.com/hzlzh/Show-Useragent | |
wget http://files.firestats.cc/ip2c/ip2c-2.0.0.zip | |
unzip ip2c-2.0.0.zip | |
cd ip2c | |
wget http://software77.net/geo-ip/?DL=1 -O IpToCountry.csv.gz | |
gunzip IpToCountry.csv.gz | |
java -jar ip2c.jar -c IpToCountry.csv IpToCountry.bin | |
ls -sSh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment