A three-year restraining order has been obtained by actress Sandra Bullock against a woman who stalked her.
Bullock, who starred in Speed and 28 Days, married James in 2005
The star told a court in California that Marcia Diana Valentine tried to run down her husband and left "weird signs" and animal fur at her home.
It was a "clear and convincing" case of stalking, Orange County Superior Court Judge Thomas Borris decided.
He banned Valentine from coming into contact with Bullock or her husband Jesse James, or James's three children.
Valentine, 45, was arrested in April on suspicion of assault with a deadly weapon.
It was alleged that she had tried to run over James - who presents the US TV show Monster Garage - in front of the couple's house in Sunset Beach.
Valentine must stay 500 yards (460 metres) from Bullock or James
She had also been found on several occasions lying beside a garage door, yelling obscenities at James, Bullock's lawyer claimed.
Prosecutors have yet to decide whether to press charges but may do so at Valentine's next scheduled court appearance on 22 May.
Valentine did not attend the hearing at which the restraining order was imposed.