Although certain ear infection risk factors can be avoided, it is important to keep in mind that avoiding risk factors does not guarantee that your child will not get an ear infection. Some people are more sensitive than others to factors that can cause an ear infection. Talk to your doctor about methods of ear infection prevention that might be effective for you or your child.