As a nonsteroidal anti-inflammatory drug (NSAID), ibuprofen stops inflammation in its tracks. To do so, it hinders the production of inflammation-related chemicals in the body and thereby reduces subsequent fever, swelling, and pain (via WebMD).
However, because ibuprofen can put one at risk for stomach bleeding and other potential side effects, it may not be appropriate for those with certain health conditions, such as anemia, high blood pressure, stroke, and liver disease. For these individuals, it is best to first consult with your physician. Similarly, those who are breastfeeding are also encouraged to speak with their doctor before usage. For breastfeeding people with stomach ulcers, ibuprofen would not be considered safe.
Although highly unlikely, some babies may experience vomiting or diarrhea if exposed to ibuprofen through breast milk, according to experts at The Recovery Village. Generally speaking, however, ibuprofen is considered safe for healthy, breastfeeding adults, reports the Mayo Clinic. The same is true for some other types of pain-relief medications such as acetaminophen (Tylenol) or naproxen sodium (Aleve). Naproxen sodium should not be used on a long-term basis, however.