When the diarrhea is mild and your dog appears otherwise healthy, over-the-counter anti-diarrhea medication may be appropriate. However, it's always best to consult with your veterinarian before giving your dog any medication, as some human medications can be toxic to dogs.