Supermarkets in France have been banned from throwing away or spoiling unsold food by law.
The stores are now required to donate unwanted food to charities and food banks.
To stop foragers, some supermarkets have poured bleach over the discarded food or storing binned food in locked warehouses.
This law was voted unanimously by the French senate on Wednesday after a petition was launched by Courbevoie councillor Arash Derambarsh.
It will apply to any supermarket with a footprint of 400 square metres or larger.
If companies flout the law they coud incur fines up to 3750 Euros.
Jacques Bailet from Banques Alimentaires, a network of Food banks, told the Guardian: “Most importantly, because supermarkets will be obliged to sign a donation deal with charities, we’ll be able to increase the quality and diversity of food we get and distribute.