Restaurants and other spaces catering to the public in France have been banned from offering unlimited sugary drinks in an effort to reduce obesity.
It is now illegal to sell unlimited soft drinks at a fixed price or offer them unlimited for free.
The number of overweight or obese people in France is below the EU average but is on the rise.
The World Health Organization (WHO) recommends taxing sugary drinks, linking them to obesity and diabetes.
Self-service "soda fountains" have long been a feature of family restaurants and cafes in some countries like the UK, where a soft drinks tax will be introduced next year.
The new law targets soft drinks, including sports drinks containing added sugar or sweeteners.
All public eateries, from fast-food joints to school canteens, are affected.
The aim of the law is to "limit, especially among the young, the risks of obesity, overweight and diabetes" in line with WHO recommendations.
A recent Eurostat survey of adult obesity put the French at 15.3 percent, which is just below the EU average of 15.9 percent. France was slimmer than the UK (20.1 percent) but fatter than Italy (10.7 percent).
Past the age of 30, nearly 57 percent of French men are overweight or obese, according to a report published in October by the French medical journal Bulletin Epidemiologique Hebdomadaire.
Some 41 percent of women in the same age category are also overweight or obese, the study found.