In season 1 episode 22, the devils trap is introduced: a magical ward that traps demons withing its circle. It is used in the same episode to trap Meg (possessed):
What confuses me is that she was trapped in it when it was painted on the ceiling and she couldn't leave the circle, so how far would the magic work? Like how far underground would that work? Or if it was painted on the ground, how high could it go? (For example, what would happen if a demon got caught while in an air plane? or could it? are there any examples of anything like this happening in any canon sources?)