The dictum that dogs are faithful to their owners follows into yet another dimension when it is realized that dogs display their loyalty to their owners even when it comes to their behavior in terms of people who are unkind in their behavior towards their owners.
Extensive studies reveal that dogs can actually rate and evaluate men and women by the interactions they have with the owners of the dogs. Dogs were found to be reluctant to accept food from those people who displayed an antagonistic behavior with respect to their owners. Dogs were not found to be guided by self-interest here.
Apparently, dogs evaluate people on the basis of their social and emotional proximity with others, particularly their owners. Canine cognition goes a long way in determining the attitude dogs display towards people. Evaluation of the third-party, as in this case, has played a great role in a healthy development of societies where mutual cooperation is the base.
To control the behavior of dogs to strangers, the use of a leash is suggested. This is an effective way to keep the dog out of trouble. Dogs are governed by the theory of reward-punishment. So, be careful to reward good behavior by a pat on its back or by verbal appraisal. You can also use negative reinforcements for toning down the behavior that does not fall into your good books.
Introduce strangers to the dog in a dignified manner. Touch the new guest with your hand, and extend your hand to the dog so it can get the smell of the stranger as a friend. Dogs rely on the power of smell, so this way you are sure to introduce the smell of someone you know as a friend to the dog.