Unwanted guests or solicitors can be discouraged from knocking on your door or leaving items in your mailbox by posting no trespassing signs, putting up a locked gate, or asking to be placed on a do not contact list. Security cameras and motion sensor lights may also deter unwanted visitors from approaching your property.