[Original] Traffic Anomaly - Solution to Abnormal Baidu Indexing Keywords Caused by Malware Injection (Virtual Hosting)

Published: 2023-05-16

I. Abnormal phenomenon: Traffic suddenly surges, reaching several times or even dozens of times the usual traffic; in most cases, the website is suspended because traffic exceeds the limit.


II. Investigation of causes:

1. First, analyze web logs: the number of visits increases significantly by several times or dozens of times; the pages visited are different; the visiting IPs are scattered and not fixed, but most of the traffic comes from 百度 search visits, as shown below:

_APLWX@()0EZ@Q~PO9HXL{8.png


2. Next, analyze "Visit Statistics": first, it can be seen that there is a large traffic gap between the days before and after; second, many abnormalities are found in the search engine keyword records, which are not keywords of this website, as shown below:

@FDWJCDOZ$M}341%PT)CBFL.pngCQP_M@6ZV[UUJJBNX1CPOQU.png


3. Third-party SEO analysis: https://seo.chinaz.com/ Enter the domain name to query, and a large number of abnormal keywords are indexed, and the ranking, indexed volume, and index are all very high. Further search these keywords in 百度 to verify; clicking can normally redirect to the website and bring abnormal traffic.

image.png


4. Website program code analysis: check the homepage, core files, configuration files, recently modified files, etc., find the malicious injected code, and clean it up completely. For reference: https://www.west.cn/faq/list.asp?unid=2491

8J[22L}K%H}@LFT@B$HV)AD.png


III. Solutions

1. First, find the malicious code files and clean up all relevant malicious code information.

2. Second, recharge traffic, upgrade to a higher model of virtual hosting, or upgrade to a cloud server to ensure the website can be accessed normally.

3. Because the keywords have been indexed, it takes a certain amount of time for the abnormal keywords to decrease until they disappear. After handling, some abnormal traffic will still be brought in. It is necessary to continuously monitor the website traffic usage (recharge traffic or upgrade to ensure the website can be accessed normally).


How to quickly find and filter suspected malicious code and backdoor files on a cloud server

Troubleshooting website traffic exceeding the limit

BaiDuSpider 百度 Spider occupies traffic, robots.txt settings

西部数码 visit statistics and traffic explanation (keywords: visit statistics, total traffic, statistics software, robots.txt, spider, traffic)