I just googled this
A restraining order or protective order is an order used by a court to protect a person or entity, and the general public, in a situation involving alleged domestic violence, harassment, stalking, or sexual assault. In the United States, every state has some form of domestic violence restraining order law, and many states also have specific restraining order laws for stalking and sexual assault.
Restraining order - Wikipedia
My example of a restraining order would be...
The woman was terrified of her violent partner. The judge issued a restraining order which meant he was not allowed to go within 500 yards of her home or place of work.
Hope that helps.