Los Angeles Superior Court Judge Richard E. Rico granted Dunst's request to order 25-year-old Christopher R. Smith to stay away from the actress, her personal assistant and any place they work.
Dunst did not appear during Monday's court hearing. The request was granted without her attorney or witnesses having to make arguments. Smith did not attend the hearing and never responded to a temporary restraining order Dunst received in November.
Dunst, who has appeared in three "Spider-Man" films, wrote last month that she was "quite frightened" of Smith. He was arrested by Dunst's assistant last month after trespassing at her house.