Man-in-the-middle (MITM) attack is a kind of attack in which an attacker enters in between the communicating parties and steals the information. MITM attacks can be prevented by following these methods: Using VPN Using strong WEP or WPA encryption Using Intrusion Detection Systems Forcing HTTPS Using Public Key Pair Based Authentication