Trials of an online ad system carried out by BT involving more than 30,000 of its customers were potentially illegal, says a leading digital rights lawyer. BT has said it trialled a prototype of Phorm, which matches adverts to users' web habits, in 2006 and 2007.