Occlumency

In the Harry Potter continuum, Occlumency is the art of magically shielding one's mind from invasion by Legilimency. It can prevent a Legilimens from accessing or influencing one's thoughts and feelings. A practitioner is known as an Occlumens.

(More about Occlumency at the Harry Potter Wiki.)