"If anyone but a Gringotts goblin tried that, they'd be sucked through the door and trapped in there," said Griphook.
"How often do you check to see if anyone's inside?" Harry asked.
"About once every ten years," said Griphook with a rather nasty grin.

Harry Potter and the Philosopher's Stone - Chapter 5 : Diagon Alley
See this quote in the Pensive -