Stomach virus. For adults, avoidance of exposure to the ill person is one mode of prevention. But the most important measure is frequent hand washing upon return to one's residence after visiting public areas. Not neglecting the fact that maintaining healthy nutrition will help prevent one from coming down with an infection. The rotavirus vaccine can prevent infants and toddlers from severe gastroenteritis.