Lifestyle adjustments can help prevent UTIs. While not a proven cure, cranberry products and D-mannose supplements may help prevent bacteria from adhering to the urinary tract lining. Try probiotics.