Heartworm disease can be prevented in dogs and cats by giving them medication once a month that also controls various internal and external parasites. Heartworm infections are diagnosed in about 250,000 dogs each year. 1 But there is no good reason for dogs to receive preventives all year; it is just not needed.