How to get information about a region of a region / country in web-applicaiton?

My main goal is to show different pages to different people of the country (language). I think it should be based on a user region / country, which I assume can get from the ip address?

Example: * For countries within the EU, they saw it. www.example.com

* For the Japanese, they would ship it. www.example.com/jp

I also noticed that some people said that to achieve this, the best way is based on the web browser language that can be obtained from the http header. I do not know what is better, what is common and why ..?

Thanks for your advice!

I use Flex and Java.

+3
source share
3 answers

Zolo, - geoip maxmind, // IP-, :

  • VPN
  • .

: , , "es" "en", IP "en".

, , , :

  • , , cookie
  • TLD , .com (: mycompany.jp , mycomany.com " "
  • GeoIP

, , .

+5

IP2Location ( , IP-). -, 49 , .

+2

-...

!

SO-, .

- GeoLocation, - , .
, , , , .

URL- SO:

IP

IP

( ) HTTP-Accept-language, . - ​​ , ...

, , , (, , , )

+2

Source: https://habr.com/ru/post/1731138/


All Articles