Men can prevent the types of HPV that cause most genital warts and anal cancer by receiving an HPV vaccine. These were originally approved as a cervical cancer vaccine for girls and young women, and they're now approved by the Food and Drug Administration for the prevention of anal, vulvar and vaginal cancers, too.