Condoms can only slightly reduce the risk of infection, because HPV is so easily transmitted. Prompt removal of genital warts reduces the risk of infection for others. People with regularly changing sexual partners should be checked for genital warts regularly, so that the warts can be quickly removed if necessary.
You can be vaccinated against some strains of HPV. Vaccination is recommended for girls aged 12 to 17, as at that age they have usually not yet come into contact with the virus. The vaccine is effective against most strains of HPV that cause cervical cancer or genital warts. However it does not provide complete protection.