to prevent from entering a place, particularly oneself, inadvertently

listen to the pronunciation of to prevent from entering a place, particularly oneself, inadvertently
English - English
lock out

I've locked myself out of my room again.