Horses can also be affected by heartworm, albeit less commonly than dogs. The treatment regimen for horses often involves medications that could be considered for use in dogs. Typically, these treatments are antiparasitic in nature, targeting the adult worms as well as the larvae. Some common medications include ivermectin and moxidectin, both of which are effective against various parasites, including heartworms.