Los Angeles Superior Court Judge Joseph Biderman issued the restraining order against David Cocordan after a hearing Wednesday in Santa Monica, California.

Lohan wrote in a court filing last month that she is frightened of the 38-year-old, who she states has sent her more than 100 text messages, including one describing having sex with the “Mean Girls” star.

The 24-year-old actress didn’t attend Wednesday’s hearing.

She is currently serving house arrest on a 120-day sentence for a probation violation.

The judge says Cocordan agreed in writing that the order should be issued.