You can also use citrus fruit peelings, cut them up into little pieces, and spread over areas in your garden you want the dogs to keep out. As an added bonus, aphids and ants will also stay away from the soil and your plants, with citrus peelings to block them out. Garlic and Chili Pepper Dog Repellent