About ibuprofen, here in Spain (and I think the whole Europe), it's BTC (no prescription) until 400mg. Over 400mg you need a prescription. And when it's pills/capsules, it's sold in pill sheets (is that the name?) individually sealed.
I think everything register as a medicine in Europe has to be BTC.
Of course, as you say, everything else is on the other side of the counter, so you could be poisoning bananas or chocolate.