No single method can protect home or corporate WiFi networks, and so a variety of measures have to be employed. The most basic protection is to use encryption, so that all communication is scrambled, and only those with the proper encryption keys can use the network or read its packets.