If your puppy begins eliminating in certain areas of the home, deny access by closing doors to the rooms, utilizing baby gates, or moving furniture over the soiled areas. Most pets prefer to avoid eliminating in areas where they eat or play. Feeding or placing water bowls, bedding, and toys in previously soiled areas can discourage elimination. No puppy has ever been housetrained without making a mistake or two. Be prepared for the inevitable.
Punishment is the least effective and most overused approach to housetraining.
A correction should involve nothing more than a mild, startling distraction and should be used only if you catch the puppy in the act of eliminating indoors. Immediately take the pup to its elimination area outdoors to finish. A correction that occurs more than a few seconds after the puppy eliminates is useless because it will not understand why it is being corrected. If the punishment is too harsh, your puppy may learn not to eliminate in front of you, even outdoors, and you run the risk of ruining your bond with it. And don't even think about rubbing the pup's nose in a mess.