Answer the question
In order to leave comments, you need to log in
Is there any normal analogue (preferably free) of GeoIP?
Is there any normal analogue (preferably free) of GeoIP?
Online services are not interesting, they work today and not tomorrow.
And another question: How do you determine the user's country\region\city?
Answer the question
In order to leave comments, you need to log in
https://github.com/scriptixru/sypexgeo
Я использую этот пекейдж для определения страны/региона/города.
maxmind.github.io/GeoIP2-php
upd1. ( этот способ больше не работает смотри upd2)
Обновление для БД bash
#!/bin/bash
wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz
wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz
gzip -d GeoLite2-City.mmdb.gz && gzip -d GeoLite2-Country.mmdb.gz
mv GeoLite2-*.mmdb helpers/GeoIP2/db/
Использую https://www.ip2location.com
По моим тестам в сравнении с аналогами эта база более точно определяет города РФ.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question