You can also make or purchase a bar that swings down from the door frame to the middle of the door to prevent the door from sliding.
How to keep doors that have a hole lock locked.
You simply need a straight stiff.
The center hole is above either a push release lever or a screw release lever.
Use a small screwdriver or thin tool on interior doors.
The kind the original hack refers to are locked by pushing the entire doorknob in.
Inside is a small button that needs to be pushed to unlock the door.
If it is a screw release you will need a flathead screw type object to slip into the slot and then twist it counter clockwise to disengage the lock.
Push the door so that the gap between the doorframe and the locked door is as wide as possible.
It can be used to jam the handle door knob from the inside of the room on inward opening doors.
All perimeter doors should have locks intended for security as they are the most likely to be targeted by thieves and burglars.
If you re locked on the other side look for a tiny hole on the doorknob.
At the very least place a rod a thick wooden dowel for example in the bottom track of the door to keep it from being opened.
Push an eyeglasses screwdriver a paper clip hammered flat or a very small butter knife into this hole.
This is done by placing one side of the security bar under the handle knob and the other side on the floor.
To lock a door without a lock you will have to tie one part of the connecting material to the handle of the door and then tie another part around a solid anchor point.
The ones more common are the type that have a small inner knob that you push in or turn or both to lock the door.
My suggestion for either is to remove the doorknob entirely and reinstall it backwards.
The non locking side of the door should have a small hole likely on the face of the knob.
This method works on doors with privacy handles locked by pushing a button in the door handle.
Exterior doors installing a privacy lock on an exterior door is not ok.
If you push in far enough the button will depress and the lock will disengage.
An ideal anchor point is a solid material that is securely anchored down to the ground.
Step 3 insert your plastic card into the gap above the doorknob at a slightly downward angle.
The best way to secure sliding doors is to install keyed locks at the top and bottom.