You can also purchase sprays from local pet food stores to discourage dogs from mating. It is common for people to put their dogs in britches or diapers to prevent them from getting into a mating position with each other. Even though this method may work temporarily, it does not guarantee that your dogs will not mate.