Ringworm is actually caused by a fungal infection and not a Worm.
There is no worm inside you causing ringworm. It's only a fungal infection and can be prevented by washing your hands and arms and showering daily using antibacterial soap.
If you get ringworm you should go see a doctor to get prescribed some prescription ointment or other antibiotics to cure the ringworm.