The best type of lock for securing a door is a deadbolt. For proper residential security you should ensure all outside doors to your home have a deadbolt installed.
Spring loaded locks such as a locking door knob are not a sufficient security for most applications as they are easily opened by intruders. A properly installed deadbolt requires more skill, strength, tools and time to defeat
A deadbolt lock installed for a storefront door
A electronic keypad deadbolt lock