In laboratory tests, carrageenan, a compound derived from red algae, prevented HPV infection by both genital wart and cancer-causing types.