Doctors usually do not recommend antidiarrheal medications (e.g., Loperamide) for gastroenteritis because they tend to prolong infection, especially in children.How can gastroenteritis be prevented?There are several steps that you can take to reduce your risk of getting gastroenteritis, including: Washing your hands frequently, especially after going to the bathroom and when you are working with f