Olivia Wilde has obtained a permanent restraining order against a man who repeatedly called to her house and claimed he was her lover.