Here in India, lot of people doing workout in gym wear LANGOT(Loin Cloth or Drawers or Nappy), e.g.

They say that if they don't wear it, they will suffer from Hernia. I have joined gym some days ago and everyone in the gym use it and also advice me to use it or I will get hernia. But I don't think that wearing it will prevent me from hernia. So is there any need to wear that while doing workout in gym?