4. Anti-diarrheal medications In certain circumstances, medications like kaolin-pectin or bismuth subsalicylate may be prescribed to help solidify stool and alleviate symptoms.