My 5 year old knows how to open the door knob safety locks

This is what she knows how to open. Does anyone have a suggestion what I should get in place of this? I could do a top lock but that wouldn’t work it would need to be locked from the outside - my husband leaves at 5 in morning.