It also combats mites responsible for diseases like demodicosis in canines. Among various brand names ... Ivermectin is primarily used in dogs for the prevention and treatment of heartworm disease.