When anti-inflammatories are taken by mouth they work by blocking (inhibiting) the effect of chemicals (enzymes) called cyclo-oxygenase (COX) enzymes. COX enzymes help to make other chemicals called prostaglandins. Some prostaglandins are involved in the production of pain and inflammation at sites of injury or damage. A reduction in prostaglandin production reduces pain and inflammation.
I’m not saying NSAIDs are useless. They have their place. If you’re recovering from surgery or a major injury, traditional over-the-counter pain relievers are good for controlling inflammation, swelling, and pain, but NSAIDs are far too powerful for over-the-counter, everyday use. Unlike a lot of natural pain relievers, NSAIDs also don’t address the cause of inflammation or pain; they just mask the symptoms.