Five members of a drill group have been given heavy restrictions on making music with violent lyrics and ordered to inform police of new videos and upcoming performances.

In what is believed to be the first order of its kind, a judge on Friday also banned Yonas Girma, 21, Micah Bedeau, 19, Isaac Marshall, 18, Jordan Bedeau, 17, and Rhys Herbert, 17, from mentioning death or injury in songs or on social media.

Yonas Girma
Yonas Girma (Metropolitan Police/PA)

The gang members who are part of the 1011 drill group – based in Ladbroke Grove, west London – have had millions of views on YouTube with tracks in the genre linked to a rise in violent crime.

Micah Bedeau
Micah Bedeau (Metropolitan Police/PA)

Recorder Ann Mulligan, sitting at Kingston Crown Court, issued the three-year criminal behaviour orders applied for by the Metropolitan Police’s Trident gang unit after the men were locked up for conspiracy to commit violent disorder.

Isaac Marshall
Isaac Marshall (Metropolitan Police/PA)

Police have connected the genre of rap music – which often features masked or hooded groups talking about hedonistic lifestyles and their relationships with guns, drugs and stabbings – with a rise in violent crime in the capital.

Jordan Bedeau
Jordan Bedeau (Metropolitan Police/PA)

The orders say that, on social media and in music videos and performances, the men must not encourage violence, mention named postcodes in a gang context, or make reference to the death of Teewiz, the nickname of 19-year-old Abdullahi Tarabi, who was fatally stabbed in west London.

Rhys Herbert
Rhys Herbert (Metropolitan Police/PA)

They must also notify police within 24 hours of releasing new videos and give 48 hours warning of the date and location of any performance or recording and permit officers to attend.

The men must also not possess balaclavas or attend Notting Hill Carnival.

Freedom of expression campaigners criticised the move.

Index on Censorship chief executive Jodie Ginsberg said: “Banning a kind of music is not the way to handle ideas or opinions that are distasteful or disturbing.

“This isn’t going to address the issues that lead to the creation of this kind of music, nor should we be creating a precedent in which certain forms of art – which include violent images or ideas – are banned. We need to tackle actual violence, not ideas and opinions.”

Scotland Yard is taking on the genre, with Metropolitan Police Commissioner Cressida Dick blaming social media for fuelling a surge in murders in London and singling out drill.

The force has a database of more than 1,400 videos for intelligence and in the past two years has asked YouTube to remove up to 60 of them.

The men hit with the ban were arrested on November 9 in Colville Square, Notting Hill, after an investigation into their music and social media accounts.

Police suspected they were planning to attack a rival group, 12 World, while armed with four large machetes, baseball bats, masks, balaclavas and gloves.

The defendants said they were on their way to make a music video when they were arrested and the weapons were simply props, but the judge said it averted a “very serious violent incident” between two gangs.

They admitted the lesser charge having denied counts of conspiracy to commit grievous bodily harm with intent.

Girma, of Hounslow Road, Hanworth, Marshall, of Ladbroke Grove, Herbert, of Lonsdale Road, Notting Hill, and brothers Jordan and Micah Bedeau, of Colville Square, are serving jail or detention sentences for between 10 months and three-and-a-half years.