V
V
Veil2011-02-07 01:34:53
Geolocation
Veil, 2011-02-07 01:34:53

How is IP address geolocation done?

I know that:

  • looks at what users go to the site
  • packets are tracked


Actually, the mechanism of influence is more interesting. Those. if I register my block of PI addresses and AS, then how can I make the geolocation give the values ​​\u200b\u200bthat I need? Bind these addresses to the servers of the country you need? Can addresses from the same block and under the same AS be defined under different countries?

For some reason, very little has been written about this everywhere. I would be grateful for valuable links on this topic.

Answer the question

In order to leave comments, you need to log in

8 answer(s)
R
Riateche, 2011-02-07
@Riateche

The Wikipedia article refers to this database: ipinfodb.com/ip_database.php
It, in turn, refers to this one: www.maxmind.com/app/city_accuracy
And it says the following:

We obtain the known IP location pairs from sites that ask the web visitor to provide their geographic location. The geographic location along with the web visitor's IP Address is forwarded to us.

That is, there is no centralized system, each organization that wants to have such a database collects information on its own.
I can assume that by default your IPs will be determined as belonging to the country in which you buy them.

S
Stalker_RED, 2011-02-07
@Stalker_RED

the simplest option: based on address databases collected from whois
in more complex cases - these databases are adjusted manually, replenished with trace data, and corrected by crowdsourcing.
Google, for example, has generally cool developments on this topic.
in a particular case will depend on the database used. if it is based only on whois data, then it will determine the address that is specified.
IMHO.

A
amc, 2011-02-07
@amc

Regarding AS: since ASka can have many connections with the outside world, it is technically possible to have at least an all-terrestrial autonomy. So there are no guarantees on the geographical location.

P
Puma Thailand, 2011-02-07
@opium

geoip.ru
Contact public IP databases and ask to be given the desired location.

M
michs, 2011-02-07
@michs

We use www.maxmind.com database. If we find errors in the definition, then we send the data to maxmind, they correct it. The free version updates the database once a month.

A
Alex_B, 2019-03-25
@Aleks_B

The question is quite old, but I think readers will be interested to know about the latest improvements in IP geolocation technology.
Here are links to a resource that sheds light on how this is happening now
and where the future of this technology is.
This service provides daily updates of IP geolocation databases and is completely free.

W
Whois, 2019-04-10
@andrey_id123456789

I use the API from https://ipwhois.io/ , the price for a subscription is adequate and there are no restrictions on requests.

E
Eduaaard, 2019-09-07
@Eduaaard

The essence and use of geolocation is described in the article:
https://habr.com/en/post/461359/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question