Excitable Dogs: Encourage Calm Behavior.
If your dog is barking at strangers because he's over-excited, it's best to take a slightly different approach.
Your excitable dog is barking because he associates a stranger with a reward.
Once they start to bark, turn around and walk your dog in a different direction.