Anti-intruder jinx

the anti-intruder spell is placed on a building when you don't want unfriendly people coming near the building. it is put on Hogwarts in the sixth book for extra protection.