You can prevent the spread of stomach flu by practicing good hygiene, washing your hands frequently, avoiding close contact with infected individuals, and disinfecting surfaces regularly.