If your pup jumps up, stand still, do not look at them, do not push off, do not tell off, do not turn round. You are a statue. As soon as all 4 of their paws are on the ground, you can bend down and stroke them. If they jump up again, back to being a statue. Consistency is KEY. If visitors come who can’t follow this rule, then pop your pup on a lead or in their crate/the kitchen to stop them having the opportunity to jump up. A yellow bandana that says “In training” can be a useful way to ensure that people in the street don’t approach your pup without asking you first. You can then control the situation to make sure that your pup doesn’t have the opportunity to jump up at them (and be reinforced when they give him a stroke).