Bristol Superior Court Judge E. Susan Garsh issued a complex gag order Friday designed to ensure that former New England Patriot Aaron Hernandez can get an impartial jury when he goes on trial on charges of killing a man in North Attleborough last year.

The 25-page order, which sets rules for both Bristol District Attorney C. Samuel Sutter’s staff and for the team of defense lawyers hired by Hernandez, was made public Friday afternoon.

“None of the lawyers appearing in this case or any person with supervisory authority over them shall release or authorize the release of information about this proceeding that a reasonable person would expect to be disseminated by any means of public communication if the lawyer knows or reasonably should know that it will have a substantial likelihood of materially prejudicing potential trial jurors or witnesses or will have a substantial likelihood of heightening public condemnation of the accused,’’ Garsh wrote in one part of her decision.

Hernandez is being held without bail after pleading not guilty to a first-degree murder charge that alleges he orchestrated the murder of Odin L. Lloyd of Dorchester in an industrial park not far from Hernandez’s home in North Attleborough.