How do I obtain a restraining order?

During court hours you would go to the Gloucester District Court on 197 Main St.,Gloucester, MA. If the court is closed you can obtain the information you need at the Rockport Police Station on 168 Main Street, Rockport, MA.