Condoms are the most effective way of preventing HIV (and STI) infection via vaginal and anal sex as well as oral sex performed on men. They should be put on before any sexual contact as HIV can be passed on through pre-come, vaginal fluid, and from the anus