Despite their differences -- Bonds allegedly lied about taking steroids, Blagojevich was convicted of lying to the FBI -- the cases became linked when a judge pointed to media attention surrounding the former governor's trial as reason to keep Bonds' jurors anonymous.
Zagel withheld jurors' names to protect them from the media.
Some question the decision, saying the public has a right to know jurors' names. Others contend it's the judge's responsibility to shield jurors from media to ensure an unbiased verdict.
Jurors are expected to begin hearing the perjury trial of Barry Bonds this week.
In her ruling, Illston quoted Zagel: "Jurors summoned from the community to serve as participants in our democratic system of justice are entitled to safety, privacy and protection against harassment."
Last year, Blagojevich's elder brother Robert said his indictment by the federal government made him more sympathetic to Bonds.
"I never thought much about Barry Bonds being hounded on steroids, other than he used steroids, but now, you know, the government's going after him, and I'm kind of sympathetic to Barry Bonds, having been in my position. It's kind of a weird thing," Robert Blagojevich said.
The Associated Press contributed to this report.