A Los Angeles judge has granted actress Halle Berry a three-year restraining order against her stalker, TMZ reported Monday.

The permanent restraining order, issued by Superior Court Judge Carol Boas Goodson, comes almost three weeks after Richard A. Franco was arrested for trespassing and scaling the walls of the Oscar winner's home in Hollywood Hills.

The restraining order requires Franco, 27, to stay at least 100 yards from Berry and her 3-year-old daughter Nahla, according to E!

Franco had previously attempted to break into Berry's home twice before his July 11 arrest.

Both parties did not attend Monday's restraining order hearing.

Franco is currently in jail on charges of felony stalking and burglary, while Berry has remained busy with a custody battle over her daughter.

In June, Berry, 44, visited a family court to file a complaint about former partner Gabriel Aubry and his alleged violation of a custody agreement, TMZ reports.

Berry's next movie is Garry Marshall's star-studded romantic comedy, "New Year's Eve," out Dec. 9.