Kristi Benson, a certified dog trainer, says the best approach to stopping a dog from marking is two-fold: prevent, and train. Prevention means that dog owners must carefully prevent their dog from lifting a leg inside using crates, leashes, or ex-pens, at all times for up to three weeks.