The question of Pure IP countries is that there are several languages for websites. IP addresses are used to determine which country the website belongs to and which language the website will access. A pure IP database is created. if the IP address is an IP address in China, only the province and city are displayed and the country name is not displayed. There is still no better IP library or method to determine which language the page is to enter. Pure IP country problems,
Now I have made a website. There are several languages in which I can use IP addresses to determine which country I want to access.
A pure IP database is created. if the IP address is an IP address in China, only the province and city are displayed and the country name is not displayed.
How can this problem be solved,
Or there is no better IP library or method to determine which language to enter the page. Share:
------ Solution --------------------
You can divide it into countries, provinces, and cities. if the country is not found, it is China by default, and you can find provinces and cities in China.
------ Solution --------------------
Compare the display first with China. if it does not match, the default value is China.
------ Solution --------------------
How many provinces are there?
------ Solution --------------------
Unknown physical address indicates that the data producer has not yet determined the source address. you can ask your user and contribute the address.
The reserved address indicates that this is an internal address (used within the LAN or WAN) and will not appear on the Internet.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.