Botnet is one of the most dangerous and fastest growing network threats at present. No matter it is individual, school, company or organization, the Botnet have constituted a serious threat. How to detect computers inside the LAN to determine if they are being affected by Botnet virus has become a major challenge. In this study, we focus on the HTTP Based Botnet detection and blocking mechanism. We develop an algorithm to measure the Botnet Packet behavior to detect Botnet infection. By this algorithm, we can effectively detect one of the Botnet viruses. By using the blacklist mechanism provided by the proxy server to block the infected computers, we can avoid further serious consequences.