Also, many hotels also set door closers in the guest room which ensures the door close and locks automatically once the door reaches a certain degree of opening. If the hotel room you live in doesn't lock automatically, you need to contact the receptionists.