The acid reflux medicines are the Histamine Blockers or the H2 receptor antagonists. Histamine stimulates a pump in the stomach that releases hydrochloric acid. The H2 receptor antagonists prevent the histamine from stimulating this pump. They block the production of the hydrochloric acid thereby reducing secretion and concentration into the stomach.
One of the acid reflux medicines is the Cimetidine which was introduced in 1975. It has a short half-life and short duration of action. The three most popular H2 blockers are Ranitidine, Famotidine and Nizatidine. They are more potent than Cimetidine because in addition to blocking gastric acid secretions, they also promote healing of the ulcer by eliminating its cause. They also have longer duration of action.
As the cliché goes, an ounce of prevention is better than a pound of cure, you can avoid having an acid reflux or GERD by avoiding too much smoking and alcohol, and by eating less of spicy and greasy food. When taking NSAIDs, be sure you take it after meals. Lastly, avoid stress because it stimulates the release of the deadly acid.