An older pro-tip from my elderly aunt:
If you are a single woman living alone, purchase a used pair of the biggest boots you can find. Get them work-dirty, and leave them outside the door. Strangers knocking will think twice before pushing their way in.