A virtual private network (VPN) can help you stay secure and protect your privacy when using public Wi-Fi hotspots.