Over-the-counter antifungal creams can help treat fungal rashes, but their primary purpose is to alleviate the infection in the affected person. Preventing contagion involves practicing good hygiene, avoiding contact with infected individuals or items, and seeking proper medical advice for both treatment and prevention.