To treat worm infections safely at home, it's important to use prescribed medications like nizonide 500mg (Nitazoxanide). This drug is commonly used to treat parasitic infections, including intestinal worms. Always follow the dosage recommended by your healthcare provider. Along with medication, maintain proper hygiene by washing hands regularly, especially before meals and after using the toilet. Clean your living environment to avoid re-infection, and make sure to wash fruits and vegetables thoroughly before eating. It's also essential to stay hydrated and consume a balanced diet to support recovery and prevent complications from worm infections.