The most commonly prescribed medicine for piles with bleeding is a topical cream containing a steroid, such as hydrocortisone, and a local anesthetic, such as lidocaine. Other medicines that may be prescribed include oral pain relievers, such as ibuprofen or acetaminophen, and stool softeners to help with constipation. You may also be prescribed an antibiotic if there is an infection.