Commenters add IP address attribution information

Original link: https://www.yunfanch.com/note/1951.html

Recently, Baidu, Weibo, Douyin, Zhihu, and Xiaohongshu have all launched the comment IP territorial function, which is displayed in provinces/regions in China and in countries abroad, and users cannot turn off this function.

Douyin Security Center official WeChat message, in order to maintain a real and orderly discussion atmosphere, reduce bad behaviors such as impersonating a party to a hot event, malicious rumors, and rubbing traffic. Douyin plans to display the account IP location on the personal homepage and other locations. The relevant functions will be tested at the end of April, and will be gradually launched in other scenarios according to the test situation. The account IP location displayed on the platform is the network location when the last article or comment was posted. It is displayed in the province (region, city) domestically, and displayed in the country (region) overseas. The account IP location is subject to the information provided by the operator, and related display is not supported. Turn it on or off manually.

I decided to follow the trend and add this function. My blog is built by Typecho. At present, there are two ways to achieve it: one is to call the APIs of websites such as Baidu, Pacific, and Taobao. The problem is that it affects the loading speed of the website; the second One is to use a local database, which is much faster.

The specific effect is as follows

This article is reproduced from: https://www.yunfanch.com/note/1951.html
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment