When experiencing diarrhea, avoid foods that worsen symptoms. Steer clear of dairy products like milk and cheese, as they can be hard to digest. High-fat, greasy foods such as fried items or fast food may irritate the gut. Sugary drinks, caffeine, and alcohol can further dehydrate you. Spicy foods and high-fiber items like raw vegetables or whole grains may aggravate the condition. Avoid artificial sweeteners like sorbitol, found in gum and candies. While recovering, consult a doctor about medications like cephalexin capsules, which treat bacterial infections but may cause diarrhea as a side effect. Opt for bland, low-fiber foods instead.