Ketoconazole shampoo is a medicated shampoo designed to treat fungal infections affecting the scalp. You can use it for conditions like stubborn dandruff, psoriasis, and more. Shampoos containing ketoconazole are available both over the counter (OTC) and by prescription from your doctor.