To avoid getting hiv hiv is a virus that infects people by getting inside their blood cells to avoid getting hiv you must prevent the blood semen vaginal fluids or breast milk of someone who is infected from entering your body through your mouth vagina anus tip of your penis or breaks in your skin.