Rachel Bilson has obtained a three-year restraining order against an alleged stalker, who reportedly tried to break into her Los Angeles home on "multiple occasions".