2. Oral Medications These are given as pills or chewables and can be very effective in preventing and treating infestations. Some oral medications, such as NexGard and Bravecto, target fleas and ticks, while others, like Heartgard, are designed to prevent heartworm disease.