Medications to treat gout attacks. Nonsteroidal anti-inflammatory drugs (NSAIDs). NSAIDs include over-the-counter options such as ibuprofen (Advil, Motrin IB, others) and naproxen sodium (Aleve, others), as well as more-powerful prescription NSAIDs such as indomethacin (Indocin) or celecoxib (Celebrex).