Publish: 2018-05-24 | Modify: 2018-05-24
If the website is accessible directly but contains malicious information in the search engine snapshot, it is likely that the website has been compromised. In the article "Simulating Baidu Spider Access with Chrome Browser", I have shared a method to simulate search engine spider access for reference.
If you are more experienced, you can analyze the code through website logs and file modification time to identify the malware. However, even if you are experienced, this method is very inefficient. Here, I recommend a software called "Guard God Cloud Anti-Malware" which can detect most malware.
This software does not require installation, just unzip and use. It supports custom scanning paths and also supports adding FTP for cloud scanning. Most malware can be detected.
Most website compromises are due to vulnerabilities in the program. Developing good habits can effectively prevent website compromises. Here are some suggestions for reference. If there are any deficiencies, please let me know.
I come from China and I am a freelancer. I specialize in Linux operations, PHP, Golang, and front-end development. I have developed open-source projects such as Zdir, ImgURL, CCAA, and OneNav.