The interior ministry said the measure was taken "in order to maintain public order and safety" after several days of heightened anti-French sentiments.