Preventing ear infections involves several strategies. Ensuring that children receive all recommended vaccinations, such as the pneumococcal and influenza vaccines, can reduce the risk. Breastfeeding has been shown to provide protective antibodies. Additionally, avoiding exposure to secondhand smoke and practicing good hygiene, such as regular handwashing, can help prevent infections.