Vaccines can protect against the types of HPV that cause most cervical, vaginal, vulvar, penile and anal cancers. They are Gardasil, and Gardasil-9. They also protect against most genital warts. Whichever of these vaccines you and your doctor choose, you should stick with the same vaccine for all three shots.