Your location home page SEO

What about Baidu's statistics of other people's websites and advertising words?

My friends who have worked on websites must have used Baidu statistical tools more or less. Like most webmasters, Xiaoshan uses Baidu statistics for the purpose of understanding the traffic of the website. However, when I recently logged into the background of Baidu statistics, I found that there are many other industry words and other websites in Baidu statistics. I didn't pay attention to this problem, However, it is found that many search terms in the statistical data are prohibited advertising words, and the source domain names are illegal domain names. The first time I thought, is it possible that Xiaoshan's blog was hacked?

 Baidu Statistics

I have checked many times and found no problem that the website was hacked. I can't find my website by searching by myself according to the search terms. So I found some information on the Internet and found that many webmasters had a problem similar to "Baidu statistics traffic source advertising". Many people do not know what happened to many other people's domain names in Baidu statistics? Let's talk about the reasons and solutions for the emergence of advertising keywords and domain names in Baidu statistical traffic sources:

1、 Analysis of Baidu Statistical Principle

Before we want to understand the reasons for the abnormal traffic source of Baidu Statistics, let's first understand the working principle of Baidu Statistics? When installing Baidu statistical tools to the website, we will require the website to embed a JS code:

1. Statistical code

var _hmt = _hmt || [];

(function() {

var hm = document.createElement(“script”);

hm.src = “ https://hm.baidu.com/hm.js?23e1c6643232082cffb3b7e1f2d1238f ”;

var s = document.getElementsByTagName(“script”)[0];

s.parentNode.insertBefore(hm, s);

})();

Remove the redundant code and get the most important line

https://hm.baidu.com/hm.js?23e1c6643232082cffb3b7e1f2d1238f

That is, the introduction of this JS file will enable statistics. The 32-bit string behind the problem is the unique statistical ID of each site

2. Hm.js loading

When the code is loaded, it will write a permanent cookie named "HMACCOUNT" to the user's browser, which is valid until 2038, to distinguish the user identity. At the same time, the client environment will be obtained, including browser version, screen resolution, color depth, language and other information.

3. Send request and pass parameters

When all the information is obtained, you can submit a request to the server, integrate the previously obtained parameters, and request hm.gif with these parameters as the suffix. It is about this address:

https://hm.baidu.com/hm.gif?cc=1&ck=1&cl=24 -bit&ds=267×570&vl=570&et=0&ja=0&ln=zh-cn&lo=0&lt=1602558481&rnd=1822260024&si=b9752bda752a59c2b79457ec6e36bcb6&su=https%3A%2F%2Fwww.seekhill.com%2Fsafe%2Fiossafe%2F&v=1.2.76&lv=3&sn=31210&r=0&ww=267&ct=!!& u=https%3A%2F%2Fwww.seekhill.com%2Fother%2Foriginal-article%2F&tt=%E7%BD%91%E7%BB%9C%E5%8E%9F%E5%88%9B%EF%BC%8C%E6%88%96%E8%AE%B8%E4%B8%8D%E5%86%8D%E4%B8%80%E6%96%87%E4%B8%8D%E5%80%BC%EF%BC%9F%20-%20%E5%AF%BB%E5%B0%8F%E5%B1%B1

4. Exit request, pass parameters

When exiting the page, send a request and pass the parameters

5. Complete the visit and record the data to Baidu for statistics

In the actual simulation, only the first three requests are needed to see the visitor record in the access record.

2、 Analysis of abnormal reasons of Baidu statistical data

I believe that after you understand the principle of Baidu statistics, you should know that these traffic sources may not actually visit your website, but with the help of some“ Simulate visit to website ”The tool can brush advertising words and access sources for your website, leading to your Baidu statistical code being maliciously embezzled.

 Baidu Statistics Traffic Source

In fact, according to many webmasters' feedback, the reason why Baidu Statistics appears industry advertising words and other people's websites is that some criminals use scripts to achieve Baidu statistics traffic source advertising push, so as to achieve the purpose of promoting illegal advertising. Compared with this kind of advertising push, the cost is particularly low.

3、 Impact and solutions

Baidu statistics show that there are a lot of forbidden words and other people's domain names, and everyone will worry about whether it will affect Weight of website And traffic? This problem Xun Xiaoshan learned from the Baidu search official that this will not affect the weight ranking of the website. If you don't want similar information to appear in your Baidu Statistical traffic source, you can use the white list filtering function of Baidu Statistical, which is now officially online. For the attack you encounter, you can set a white list to solve the problem.

 Baidu statistics whitelist filtering function

It is understood that after the white list of visited domain names is set, in the basic statistics global report, only the traffic of specific website domain names added to the white list can be counted, and up to 20 visited domain names can be added. The specific operation steps are as follows:

1. Log in to Baidu Statistics background and find [Management] in the navigation bar

2. Select Filter Rule Settings from the Statistics Rule Settings menu on the right

3. Select [Statistics Rules for Visited Domain Names], and then set the corresponding [White List] and [Black List] according to the situation.

4. Exception access addresses and source domain names can be excluded in [Exclude IP addresses] and [Exclude source domain names].

 blank

About the author: Look for a hill

People from Jiujiang, Jiangxi, focus on new media, search engines, e-commerce operations, IT technology, and software skills!

Post reply

Your email address will not be disclosed. Required items have been used * tagging