You can block a door from opening or closing by putting a heavy object into the space the door needs for opening or closing.