The bill will make it an offence to maliciously share images of French police online, where the officer can be identified.