Keep feet clean and dry, especially between the toes. Change socks daily and choose moisture-wicking fabrics. Dry feet thoroughly after showering. Rotate shoes so they can dry out. Disinfect nail clippers.
Fungus spreads in warm, damp communal areas: locker rooms, pool decks, shared showers. Wear flip-flops in these spaces. Prevention is far more effective than any treatment.