Ibuprofen and acetaminophen are both effective for pain caused by a hernia, according to Drugs.com. Both medicines are available over the counter without a doctor's prescription.
A physician can recommend whether to take ibuprofen or acetaminophen. Anyone taking acetaminophen should stay away from alcohol, as the drug can cause liver damage. Patients with kidney damage, aspirin allergies or ulcers shouldn't take ibuprofen, as Drugs.com explains.
Other home remedies for treating hernias include lying on the back with the feet elevated over the head and having a caregiver try to push the hernia back into place. Some physicians also recommend that patients wear support belts, notes Drugs.com.