Ringworm may be prevented if you’re careful about not sharing your clothing or hair accessories with others. Also, maintain scalp hygiene. And if you have a pet, get it checked regularly. In general, be careful around pets as they can be infected.