Washington (CNN) A federal judge has placed a gag order on longtime Donald Trump associate Roger Stone and attorneys involved in his criminal case, though Stone's ability to speak publicly isn't completely restricted.

Lawyers "for the parties and the witnesses must refrain from making statements to the media or in public settings that pose a substantial likelihood of material prejudice to this case," Judge Amy Berman Jackson wrote.

They, their clients and even Stone are also not allowed to speak in and around the courthouse.

In her order, Jackson notes how effective Stone has been in gaining followers, critics and media attention. She notes "the size and vociferousness of the crowds that have already been attracted to these proceedings, and the risk that public pronouncements by the participants may inflame those gatherings."

Jackson's gag order on the attorneys matches word for word the gag order she put on former Trump campaign chairman Paul Manafort, his deputy Rick Gates, their attorneys and others involved in their cases soon after their 2017 indictment. Manafort's and Gates' teams have interpreted that order to be very strict, preventing them from speaking nearly at all times with reporters and in public venues.

Read More