The HPV vaccine prevents you from getting HPV. It is now offered to both boys and girls, and to MSM, as part of the NHS vaccination programme.
This is a companion discussion topic for the original article at https://patient.info/childrens-health/immunisation/human-papillomavirus-immunisation-hpv