The ruling was made Friday by U.S. District Court Judge Susan Illston.
Lawyers for Bonds had argued for the exclusion of the players because of their ties to Greg Anderson, Bonds' former personal trainer who is refusing to testify against the slugger.
The judge has barred much of the evidence relating to Anderson because of his willingness to go to prison on contempt charges rather than testify at the trial set to start March 21.
The 46-year-old Bonds has pleaded not guilty to 10 counts of perjury and an obstruction charge after telling a grand jury in December 2003 that he never knowingly took steroids.
CLEMENS FILES MOTION: Roger Clemens is asking a judge to dismiss his indictment on charges of obstructing a congressional investigation into the use of performance-enhancing drugs in baseball.
A motion filed Friday evening by Clemens' attorneys argues the indictment is vague and contains too many separate accusations of lying in one count.
The motion argues that that could cause jurors who don't unanimously agree to still convict Clemens in violation of his constitutional rights.
Clemens is scheduled to go on trial this summer.
TRADE: A person familiar with the talks tells The Associated Press that the Toronto Blue Jays are set to trade All-Star center fielder Vernon Wells to the Los Angeles Angels in a deal that would bring back catcher Mike Napoli.
The person spoke on condition of anonymity Friday because the trade was not complete. The deal was pending physicals.
There was speculation the Angels might also include outfielder Juan Rivera in the trade and receive cash from Toronto.
'SAY HEY' RETURNS: Willie Mays sat on the stage of a grade school auditorium on the site of the old Polo Grounds in New York, addressing a room full of attentive kids. A larger-than-life black-and-white photo of himself playing stickball served as the backdrop.
He was to give the "A" students a dozen baseballs along with three cream-colored, vintage 1951 jerseys, with "Giants" written across the front in script and his old number on the back. Discovering he was one baseball short, Mays pulled out a $100 bill and handed it to Kendryck Taveras, a very surprised fifth-grader.
"I'd rather have the $100," the grinning 11-year-old said. "I'm going to save it."
RANGERS: Josh Hamilton is swinging a bat again and regaining his energy after spending six days in the hospital for pneumonia. Now the AL MVP is preparing for spring training and salary arbitration.
Hamilton says he is feeling about "90 percent" and getting better every day.
The Rangers and Hamilton are $3.3 million apart in salary figures exchanged this week.
Hamilton is asking for $12 million, up from the $3.25 million he got last season.
Hamilton says he is "counting on" the case going to an arbitration hearing Feb. 14.
CARDINALS: Nick Punto agreed to a $750,000, one-year contract with St. Louis, giving them insurance for rehabbing third baseman David Freese.