Treatment : Often, GI bleeding stops on its own. If it doesn't, treatment depends on where the bleed is from. In many cases, medication or a procedure to control the bleeding can be given during some tests. For example, it's sometimes possible to treat a bleeding peptic ulcer during an upper endoscopy or to remove polyps during a colonoscopy. If you have an upper GI bleed, you might be given an IV drug known as a proton pump inhibitor (PPI) to suppress stomach acid production. Once the source of the bleeding is identified, your doctor will determine whether you need to continue taking a PPI. Depending on the amount of blood loss and whether you continue to bleed, you might require fluids through a needle (IV) and, possibly, blood transfusions. If you take blood-thinning medications, including aspirin or nonsteroidal anti-inflammatory medications, you might need to stop.