Preventive measures vary by cancer type. The HPV vaccine is highly effective in preventing cervical cancer. Regular screenings, such as Pap smears and HPV testing, can detect precancerous changes early. Genetic testing and counseling are important for those with a family history of ovarian or breast cancer. Lifestyle changes, including maintaining a healthy weight, quitting smoking, and using barrier protection during intercourse, can also reduce risk.