LOS ANGELES — Leonardo DiCaprio has been granted a temporary restraining against a woman he said is claiming to be his wife and carrying his baby.

Court records show Superior Court Judge Carol Boas Goodson granted the order Wednesday against Livia Bistriceanu, 41, of Chicago.

“Given this obsessive and harassing behavior, I am frightened of Ms. Bistriceanu and feel that my personal safety, and the personal safety of those around me, is in jeopardy,” DiCaprio wrote in a sworn declaration.

An e-mail message sent Friday to Bistriceanu seeking comment was not immediately returned.

DiCaprio’s request included statements from the actor and his security team claiming Bistriceanu had traveled from Chicago to Los Angeles at least twice to try to meet DiCaprio at his home and business office.

The Academy Award-nominated actor wrote that she “has evidenced a willingness to make physical contact with me regardless of the consequences.”

Bistriceanu has been placed on a psychological hold twice, according to the documents.

DiCaprio said the restraining order was necessary to give police the ability to protect his safety.

He said he had never met Bistriceanu, but she has sent numerous handwritten letters to him. Some of the letters were attached to his request for the restraining order and reviewed by the judge.