Dogs like and need consistency, so if you are not allowing your dog to jump on you, everyone in the family and everyone who greets the dog must do the same. You, as an owner, must make sure this happens. It will only confuse a dog if you allow them to jump on some people who say they do not mind, and tell him not to jump on others. Once you decide you do not wish your dog to jump on people you must apply this to everyone at all times unless you give the dog a command to jump. A dog should never jump on a human of its own free will.
I remember going to a dog park where a little 4-month-old Boxer puppy ran around jumping on everyone. The dog was not heavy enough to knock most of the adults down. However, it left everyone with muddy pants and the dog was big enough to knock over small children. The owner did nothing to stop the jumping puppy. After all, it was just a small pup. Everyone around her was pretty annoyed at the muddy prints the dog was leaving all over their clothes. That is an owner who will have a problem with her dog jumping on people when it gets older.
Before you answer the door and welcome guests, clip a leash on your canine, preferably to a front-clip harness or head halter, so that he can be controlled in a manner such that he cannot greet if he jumps. When your dog is calm, with all four paws on the floor — which may take up to a few minutes for more excitable dogs — allow him to approach guests and say hello. If he jumps, gently turn and lead him away; wait for calm behavior before approaching again. For particularly excitable dogs, another option is to remove the dog to a contained area before guests come in. An exercise pen or baby gate is adequate containment for many dogs. If you have an athletic or large dog that can easily scale a gate, use a crate or move him to a room with a closed door. Once your dog calms down, clip on his leash and allow him to come out and greet your guests.
An anxious or playful pup may leap high quickly and suddenly “poke” at your face with their nose. That can be triggered by leaning over the top of them especially when they’re in a high-arousal situation like a homecoming or around other dogs. It may be a way for stressed pups to relieve their anxiety, so be aware of situations that cause these behaviors. Dogs control each others' movement with their body language. Think how a Border Collie makes sheep move just by getting close. You can stop your pup’s jumps by stepping close to him just before he leaps. Cross your arms and step into the pup’s personal space before he crouches to leap.
Start by teaching your puppy the word NO. Use that word only when she is doing something you do not like. You have to use the word NO in a loud, stern voice that is different from all other ways you communicate with her, so that she knows there is something wrong. You also have to catch her in the act that you don't like, so that it will associate the word NO with the action that she is doing. Be consistent, and follow your verbal command with a light smack or moving her to a time out spot.
When a dog jumps on a human of its own free will, it is not "greeting" the human, it is asserting its dominance over the human; it is the dog communicating that it is alpha and/or wishes to own/control the human. A subordinate would never dream of running over and jumping on the alpha dog of the pack. Space is respect and lower members of the pack respect the higher members. If your dog jumps on humans, it does not respect them. Note: when a young puppy jumps on humans it is sometimes its attempt to reach one's face. Puppies need to be taught not to jump up on humans as this behavior will manifest into other meanings as the puppy grows up into an adult dog.