In the wake of the crash that killed five people in New York City, federal regulators on Friday afternoon ordered an immediate stop to all “doors-off” helicopter flights that attach passengers to the cabin with harnesses that cannot be removed quickly in an emergency.

The Federal Aviation Administration said that the directive applied to all helicopter operators that offer such flights across the country. Riding in a helicopter with the doors off, or open, to allow unimpeded photography has become a popular adventure in certain areas, including New York City.

On Sunday, a helicopter that carried five passengers who were wearing harnesses that allowed them to lean out the open doors crashed into the East River. All five passengers drowned after the helicopter capsized in the frigid water and rescue divers struggled to free those trapped inside. Only the pilot survived.

“Operators, pilots, and consumers should be aware of the hazard presented by supplemental restraint devices in the event of an emergency evacuation during ‘doors-off’ flights,” the F.A.A. said in a statement released on Friday. “The F.A.A. will order operators and pilots to take immediate actions to control or mitigate this risk. Until then, the F.A.A. will order no more ‘doors-off’ operations that involve restraints that cannot be released quickly in an emergency.”