Safer sex is a way to help you avoid an infection spread through sex (sexually transmitted infection, or STI). It can also help prevent pregnancy.
You can get an STI from any kind of sexual contact, not just intercourse. STIs are spread through skin-to-skin contact between the genitals. You can also get an STI from contact with body fluids such as semen, vaginal fluids, and blood (including menstrual blood). This means you can get an STI from vaginal sex, anal sex, or oral sex.
STIs and pregnancy can be prevented by not having sexual contact (abstinence). Or there are actions you can take before sex to help reduce your risk of STIs and pregnancy.