Acid blockers — also called histamine (H-2) blockers — reduce the amount of acid released into your digestive tract, which relieves gastritis pain and encourages healing. Available by prescription or over-the-counter, acid blockers include famotidine (Pepcid), cimetidine (Tagamet HB) and nizatidine (Axid AR).