Prevention is by avoiding things that cause the disease.[5] Treatment includes medications such as antacids, H2 blockers, or proton pump inhibitors.[1] During an acute attack drinking viscous lidocaine may help.[6] If gastritis is due to NSAIDs these may be stopped.