sort them by country
What's the best reason ?
I can't save countries in that table
Unix uniq
That is a crazy task let me tell you that. But how can it be done? geoip-lite Is a database full of ipv4 ranges sorted by country. You should search each IP against all the ranges. I suggest loading all the database into the memory first then doing a b tree search on it. The database comes in form of csv
how to a b tree search ?
Google first I told you it's tough. You need to write a b tree algorithm against that geoip database
Sorry I didn't understand Am I correct ? 1. sort geoip database 2. search all IPs in geodb 3. list countries and sort by used count I need just top 6 used countries
Yes that is correct.
sort database by what ? country ?
Which database? Geoip that you need to download and Crete... Or your own?
GeoIP I can't download bcs it blocks our country
Blocks proxy and vpn
Imposible, proxy maybe but vpn?
Error says don't use proxy and vpn
Use transparent proxy or residential VPN
Обсуждают сегодня