Everyday habits that may lower UTI risk include drinking enough water through the day, not holding urine for long periods, emptying your bladder after sex, wiping from front to back, and avoiding scented or harsh products in the genital area. Treating constipation and choosing breathable underwear are also commonly suggested.
Evidence for some popular measures, such as cranberry products, is mixed; they are unlikely to be harmful for most people but should not replace medical care when an infection is present. A pharmacist can advise on what is reasonable to try.
If you have frequent infections despite these steps, see a doctor. Depending on your situation and life stage, options such as vaginal oestrogen after menopause or other preventive strategies may be appropriate, and any underlying cause can be checked.