In times long ago various cultures would "lock" their homes made of paper or homes made of animal hides by simply closing the entrances.
Likewise in various cultures the door was left unlocked, the remote cabin well provisioned with wood and food because the random traveler might be stuck in a snowstorm and need shelter. It was expected that after the storm passed the traveler would replace at least the used wood for the next traveler.
In many nomadic cultures the traveler is always welcome to the home with shelter and food.
You can not protect with technology. Locks only keep honest people honest. The only way you can truly protect is with morality, and that can only be taught by other moral people.
md