You can create DIY, natural homemade dog repellants to stop dogs from pooping in your yard. For instance, you could mix 1 cup of white vinegar with 2 cups of apple cider vinegar, and then mist your lawn with it. Another option is to mix white vinegar with lime juice, soak cotton balls in this mix, and place them around the areas where you don't want dogs to poop.