You cannot reliably stop a gallbladder attack at home once it has started. The pain usually settles when the gallstone moves away from the blocked duct, but medication given by a clinician may help control pain while this happens.
A gallbladder attack often causes sudden, strong pain in the upper right or middle abdomen and may last for several hours. If the pain is severe, keeps coming back, or does not improve, medical care is needed to check for inflammation, infection, or a blocked bile duct.
In urgent care or the ER, treatment may include pain relief, nausea medicine, IV fluids, and antibiotics if infection is suspected. Some people may need imaging tests and surgical evaluation, especially if attacks recur or complications are suspected.
Do not try to self-medicate with strong pain medicines or leftover antibiotics. Seek urgent care if pain is intense or persistent, or if it comes with fever, vomiting, yellow skin or eyes, or trouble keeping fluids down. A gastroenterologist or general surgeon can advise on prevention and whether gallbladder removal is needed.