The new health measure follows an increase in sexually transmitted infections in France.