The best way to prevent coccidiosis in dogs is to keep them away from feces. That though, is not the only threat. Even flies, cockroaches, ticks, and fleas act as the carriers of coccidia, thus contributing to the spread of coccidiosis to other healthy dogs.