For clarity, loperamide, sold under the brand name Imodium, is an anti diarrhea medication. It is an opioid; however, it does not readily cross the blood-brain barrier. It only acts on the opioid receptors in the large intestine and slows the movement of food. In very high concentrations it may get into the brain.