The bell rings, and your dog goes from sofa to door in one second, barking all the way. It is loud, it is common, and it is one of the most fixable habits a dog has. The trick is to see it from the dog's side, then give them a better job to do.
For a dog, the front door is the edge of their home. A sound, a knock or a shadow in the letterbox says "something is coming", and barking is how dogs raise the alarm. Then the visitor goes away, and the dog thinks "it worked". That is why the habit grows: the barking is rewarded every single time.
Barking is not always excitement, either. The PDSA points out that it can be a sign the dog is struggling, so pay attention to what the rest of the body is doing.
Shouting at a barking dog sounds, to the dog, like you are joining in. Punishing it can make the dog more worried or more excited, and the vets and behaviour groups we checked (PDSA, the Kennel Club and the American Veterinary Society of Animal Behavior) all point to rewarding the behaviour you want instead. So: no shouting, no sprays, no collars that shock or startle. Reward the calm.
The method is the same in every source we read. You teach the bell to mean "good things happen on my mat", in small steps, with a bell your dog hears at a low level. Practise a few minutes at a time, when no one is really at the door.
Don't shout, don't punish. Teach the bell to mean "go to your mat for a treat".
Ask your vet if your dog is very distressed when someone is at the door, if you see trembling, hiding, pacing or panting, or if training does not help after a few weeks. A vet can rule out pain or other health causes and point you to a qualified behaviourist. Never use shock or choke collars, or "firm" corrections.
The Kennel Club says all door barking is territorial. The PDSA says it can also be stress, so we treat it as a guess and watch the dog's body language.