Drone pilots warned after close call with passenger jet
J Thoendell stashed this in Tech
An Airbus A320's wing passed 6m (20ft) below a drone hovering at Heathrow, said the Civil Aviation Authority.
It said drone pilots would face prosecution if they put the safety of other aircraft at risk.
News about the mid-air encounter comes only days after a Lufthansa jet nearly collided with a drone on the approach to Warsaw's international airport.
Prison termsThe CAA said it had recorded six other incidents between May 2014 and March 2015 at airports around the UK in which drones and piloted craft almost collided.
"Drone users must understand that when taking to the skies they are entering one of the busiest areas of airspace in the world," said Tim Johnson, director of policy at the CAA, in a statement.
Drone owners must be aware of the rules and regulations surrounding the flying of their craft, he said.
Recklessly endangering an aircraft is a criminal offence, said Mr Johnson, and those convicted could face a five-year jail sentence.
The authority has issued a set of safety guidelines which, it said, should help ensure drone flights do not impinge on other aircraft.
The "dronecode" says recreational drone owners should always keep their craft within their line of sight, about 500m (1,640ft), and must not fly higher than 122m. In some of the near-collisions, drones were flying at heights of about 2,000ft, it said.