Using condoms or dental dams during sexual activity can reduce the risk of contracting an STD. Regular testing, vaccination for HPV and Hepatitis B, and limiting the number of sexual partners are also helpful preventive measures.