Make sure to use non-toxic plants that repel fleas such as catnip, chamomile, lavender, marigolds, mint, and rosemary, and place them on a porch or patio. Having a well-kept yard also prevents fleas, or you can spray your dog with a mix of apple cider vinegar and water with a pinch of salt.