Chris Brown Law's On His Side ... Repeat Home Visitor Banned

11/3/2016 12:30 AM PDT

Chris Brown Gets 5 Year Restraining Order Against Alleged Stalker


Chris Brown got a judge to see eye to eye with him, for once -- he's scored protection from an obsessed fan who's been repeatedly busted for showing up uninvited at his house.

Danielle Patti must stay away from Breezy, his home and his shows for 5 years ... according to the judge's order. Chris' lawyer, Setara Qassim, was in court where it was decided Patti's not a high risk right now -- she's currently in a mental hospital as a result of her last trespassing arrest at Chris' house.

TMZ broke the story ... she was first arrested in December at CB's property, then again in April ... when Chris says she shouted some graphic sexual comments.

Unclear when Patti will be released, but Chris can rest a little easier now.