The Anti-Disapparition Jinx (incantation unknown) is used to prevent Disapparition in an area for a time. Presumably it can be used to aide in trapping a victim within an area. It can also be used to protect an area or to trap prey.
This curse was used by Albus Dumbledore during the Battle of the Department of Mysteries to prevent Death Eaters from escaping the Ministry of Magic. This is also likely to be the spell that was placed on Hogsmeade in 1998 which prevented Harry Potter and his friends from Disapparating.
It is likely that Anti-Disapparation Jinxes are one of the security measures used by Gringotts Wizarding Bank, as Griphook described a security measure for certain vaults in which an intruder would be pulled into the vault and trapped inside.
It was also cast long ago on the Hogwarts Castle and its grounds, presumably by the Hogwarts School of Witchcraft and Wizardry Headmaster of the time, to prevent students from Disapparating out of the castle. The jinx is lifted temporarily within the Great Hall when sixth year students are taking Apparition lessons.
Behind the scenes
Another spell of the same kind exists, Anti-Apparition Charm, which is the same kind but prevents people from Apparating into an area.
- Harry Potter and the Philosopher's Stone
- Harry Potter and the Order of the Phoenix
- Harry Potter and the Half-Blood Prince