NSW music festivals will have to be licensed under new regulations following a string of tragedies.

Five people have now died after attending music festivals, including 23-year-old Joseph Pham and 21-year-old Diana Nguyen, who both died of suspected drug overdoses after attending the Defqon.1 festival in September.

Joseph Pham and Diana Nguyen both died of suspected overdoses at Defqon.1 music festival in Sydney.

Following this festival an expert panel was convened to advise the government on how to keep people safe at music festivals.

Based on the recommendation from the panel, from March organisers will have to apply for a specific liquor license, similar to those for pubs and clubs, for each music festival they hold which is targeted to the risks of the event.