A British judge has barred five teenage girls from traveling after they showed an interest in going to Syria.

High Court judge Anthony Hayden made the 15- and 16-year-olds wards of court, which prevents them from leaving England and Wales. He also ordered their passports removed.

The judge said Friday that the measures were "draconian," but added, "sometimes the law has to intervene to protect these young people, ultimately from themselves."

Authorities are making increasingly strenuous efforts to stop young Britons — including boys and girls as young as 15 — trying to reach areas of Syria controlled by Islamic State militants.

This week, the same judge banned a 16-year-old boy from traveling to stop him from following his three brothers to fight in Syria. Two of them died there.