Uti prevention begins with good hygiene - wipe away from the urethra, urinate after sexual contact, drink plenty of water, etc.
Many herbs inhibit bacteria
& can be used successfully on as needed basis (before sexual activity for example). Some to consider are intermittent uva ursi or cranberry. Don't use together since they work at different pH levels. Respect herbs since you can be allergic.