Judge Steven O'Neill denounced Tuesday morning's outburst as uncivil.
District Attorney Kevin Steele clashed with Cosby lawyer Brian McMonagle over the defense team's practice of publicly identifying accusers.
Steele suggested that Cosby's lawyers are publicizing them in an attempt to intimidate the women.
McMonagle said many of them had already gone public with their allegations.
Cosby's lawyers want the women barred from testifying at the 79-year-old comedian's Pennsylvania sexual assault trial next year.
O'Neill ruled that Cosby's lawyers can identify 11 of the women by name. He said two have remained out of the spotlight and shouldn't be named in court.
Copyright 2016 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.