The French president has raised the idea of limiting or even cutting off access to social media platforms during episodes of urban violence – a practice until now reserved for authoritarian regimes.