Airlines flying directly from eight countries in the Middle East and Africa to the U.S. must prevent passengers from carrying almost all types of electronic devices in the cabin, according to new security restrictions from the Trump administration.

Passengers will have to check in any devices bigger than a smartphone — including iPads, Kindles and laptops — before clearing security or boarding, U.S. officials said, citing terrorism concerns.

The indefinite ban will affect more than 50 flights from 10 airports in the mainly Muslim countries, including major hubs such as Dubai and Istanbul, according to senior administration officials. The nine airlines affected were notified of the procedures by the U.S. at 3 a.m. ET Tuesday and must comply within 96 hours.