I never knew ibuprofen was a strong antifungal. It would be interesting to see if it could help a fungal infection topically. Ingesting it might affect the gut lining too much as another member pointed it out.
I remember taking ibuprofen for a headache in the past and it seemed to really reduce bloating/fermentation.