In website optimization and design, detecting web page trojans is also a very important task. Currently, the popular form of a website being hacked involves inserting a js call method into corresponding asp, htm, js, etc. files. This article mainly introduces the types of web page horse-hanging, how to detect if a web page has been horse-hanged, how to clear web page trojans, and how to prevent web pages from being horse-hanged.