^why is it nonsense dear hareem?
ibuprofen is for muscular pains and guess what? period pains are caused by muscular contractions.
oh no! 
there’s even scientific research to back its effectiveness: Ibuprofen beats acetaminophen for period pain | Reuters
and some more reading for you: Dysmenorrhea - Wikipedia, the free encyclopedia