Foods to avoid with an H. pylori infection VnExpress Individuals infected with H. pylori should limit their intake of salty, highly acidic, spicy, and hot foods to help prevent the bacteria from thriving.