It started with the door, then it was every person that passed by. Eventually, it became annoying.
I started correcting my dog as soon as she started going bonkers.
When she starts barking, I take her by her collar, move her to where I want her to be, and put her into a down, until she calms down. If I answer the door, she must stay. If it's a passerby, I wait until she calms down, give her a treat, and move on.
I like it this way.