Superior Court Judge Aviva K. Bobb signed the restraining order against Ghalib after a brief hearing Wednesday morning. The order covers the singer, her parents, and her two young children.
Court documents contend the trio have tried to undermine the singer's conservatorship, which was established after a series of high-profile incidents of erratic behavior.
Local news from across Southern California
Jamie Spears' attorney told the judge that Ghalib hadn't filed any objections to a protective order being issued. Neither Ghalib nor his attorney have appeared at previous hearings.
The restraining orders are in effect until midnight on March 17, 2012.
It will be forwarded to several Los Angeles law enforcement agencies, and orders Ghalib not to have any physical, e-mail or phone contact with Britney Spears or her family. It also orders Ghalib not to try to act on the singer's behalf.
Ghalib faces felony charges, including assault with a deadly weapon, for an incident in which he allegedly hit a process server trying to deliver documents in the restraining order case. Authorities said Ghalib struck the process server with his car in February.
Ghalib has pleaded not guilty to the charges.
Bobb will hear additional testimony for April 1 about whether lengthy restraining orders should be issued against Lutfi and Eardley.