Door restrictors stop doors from opening either by obstructing the door, some of these can be locked but they are not a good primary security. They are only meant as secondary security to help bolster the existing lock.