Steve Granitz / WireImage 1 / 5
Steve Granitz / WireImage 1 / 5

A Los Angeles Superior Court judge granted Seth Rogen and wife, Lauren Miller, a permanent restraining order by stipulation against an alleged stalker.

RELATED: Stars Who Changed Their Looks

Yasin Ajani must stay away from the couple, reports E! News. Ajani tried to enter the couple's home twice last month, while the couple was out -- in both instances, Ajani claimed that he had a package to deliver for Miller and that she had granted him access to enter the couple's home.

RELATED: Funny Guys and Their Hot Wives

In July, Lauren Miller obtained a temporary order of protection for the couple against Ajani. "I live in fear that he will return...I have difficulty sleeping and look for [Ajani] whenever I come and go from my house," she stated in her petition.

E! News has tried to reach Miller's attorney for comment.