What is the best anti diarheal medication?

Loperamide. Best depends upon the underlying cause. Best treatment for diarrhea due to cancer is to treat the cancer and best treatment for diarrhea caused by lactose intolerance is to stop the lactose, but in general loperamide is a good agent.