A P2P and rule-based Web application intrusion prevention system