Personal Reputation

Restraining Order for Online Harassment: How the Process Works

Can you get a restraining order for online harassment? What protective orders can cover, the types that exist, how the general court process works, and the evidence that helps.

By Editorial Team 9 min read
Stone courthouse steps and columns in soft morning light with no people

In most US states you can ask a court for a restraining order for online harassment. Often called a protective order, it can ban the person from contacting you by text, email, social media, messaging apps or through other people, and violating it can lead to arrest. Which type of order you can get, and what it covers, depends on your state and your relationship with the person, so a court self-help center, a victim advocate, or a lawyer or local legal aid organization is the best place to start.

This guide explains the general process so you know what to expect. It’s not legal advice, and the details vary by state and even by county. If you are in immediate danger, call 911 before anything else.

Can you get a restraining order for online harassment?

Yes, in many situations. Courts have long treated repeated unwanted messages, threats and monitoring as grounds for protection, and most state laws on protective orders now name electronic communication directly. Online conduct that often supports a petition includes:

  • repeated messages after you’ve asked the person to stop or blocked them,
  • new accounts created to get around your blocks,
  • threats, direct or implied, sent online,
  • posting your address, workplace or other personal details alongside hostile content,
  • contacting your employer, family or friends to harass or spread claims about you,
  • tracking your location or accessing your accounts without permission,
  • sharing or threatening to share intimate images.

What a judge usually looks for is a pattern of conduct that causes fear or serious distress, or conduct that meets your state’s definition of harassment, stalking or abuse. A single rude comment is rarely enough. A documented series of incidents often is.

Types of protective orders

States use different names, and not every state offers every type. The main categories are:

Type of order Usually for Relationship required?
Domestic violence protective order Abuse or harassment by a current or former partner, spouse, family or household member Yes, a qualifying relationship
Stalking protective order A pattern of stalking, including cyberstalking, by anyone Usually no
Civil harassment or anti-harassment order Harassment by a neighbor, coworker, acquaintance or stranger Usually no
Sexual assault or sexual abuse protective order Situations involving sexual assault, which in some states includes image-based abuse Usually no
Workplace violence order Threats or harassment directed at employees; in some states the employer files No

If the harassment comes from an ex-partner, a domestic violence order is often the strongest option. If it comes from someone you barely know, a stalking or civil harassment order is more likely to fit. Our guide on cyberstalking explains how stalking is usually defined.

What an order can and can’t do

A protective order is a court order aimed at a specific person, called the respondent. Depending on the state and the judge, it can:

  • ban all direct and indirect contact, including through social media, apps, email and third parties,
  • require the person to stay a set distance from your home, work or school,
  • ban the person from posting your personal information or tagging you,
  • in some cases, address firearms, custody or shared property,
  • make any violation a criminal offense or contempt of court.

There are limits. An order doesn’t make platforms remove existing posts, although evidence of the order can help your reports. Courts are also careful with orders that stop someone talking about you, as opposed to to you, because of free speech protections, and judges differ on how far they’ll go. And an order only works against a person the court can identify and serve, which makes anonymous harassment harder.

The general process, step by step

Every state’s process is different, but most follow a similar shape.

  1. Get help choosing the right order. Court self-help centers, domestic violence and victim advocates, and legal aid organizations can explain which order fits and help with the forms, often at no cost. Many states don’t charge filing fees for domestic violence or stalking orders.
  2. Prepare your evidence. See the next section. A clear, dated record matters more than volume.
  3. File a petition with the court that handles protective orders in your county. Some courts accept filings online. You’ll describe what happened and what protection you’re asking for.
  4. Ask for a temporary order if you need one. In urgent situations, a judge can often issue a temporary or emergency order based on your petition alone, without the other person present. It lasts until a full hearing.
  5. Have the order served. The respondent must usually be formally served with the petition and any temporary order, often by a sheriff or other officer. An order generally can’t be enforced against someone until they’ve been served or otherwise notified.
  6. Attend the hearing. Both sides can present evidence and witnesses. You can bring an advocate for support, and a lawyer if you have one. The judge decides whether to grant a longer order.
  7. Keep a copy with you and give copies to your workplace or school security if the order covers them.
  8. Report every violation to the police, with evidence. Don’t reply to the person, even to tell them they’re breaking the order.

How long a final order lasts varies by state and type, and many can be extended if the harassment continues. Under federal law, a valid protective order issued in one state is generally enforceable in other states too.

Evidence that helps with online harassment

Judges see many petitions, and online harassment can look vague without a clear record. Build yours around the pattern.

  • A timeline. Date, platform, what happened, and how it affected you. Keep it factual and short.
  • Screenshots that show the message or post, the sender’s name or handle, and the date and time.
  • Links to posts and profiles, since screenshots alone can be questioned.
  • Proof the account belongs to the person, such as messages that reference things only they would know, a phone number or email linked to them, or their own admissions.
  • Proof you asked them to stop, such as a message saying “Do not contact me again,” or evidence you blocked them and they created new accounts.
  • Police reports and platform report confirmations, with reference numbers.
  • Offline incidents, such as showing up at your home, with dates and witnesses.

Print what you plan to show the judge and bring copies. Ask the court clerk how it prefers to receive digital evidence. One firm rule: never save or print sexual images of someone under 18, even as evidence. Record the link and tell the police.

Not sure where to start?

Get a free audit of your search results and review profiles, with a prioritized fix list.

Get a free audit

A worked example

This is an illustrative scenario, not a real client.

A nurse ends a short friendship with a former coworker. Over the next two months, he sends dozens of messages across three apps, creates new accounts each time she blocks him, and posts comments on her employer’s Facebook page claiming she’s unsafe with patients. One message says he knows which parking lot she uses.

  1. Advice. She calls a victim advocate, who explains that because they never dated, a domestic violence order likely doesn’t apply, but her state offers a civil stalking order.
  2. Evidence. She builds a one-page timeline, screenshots every message and new account, notes that each account uses his first name and references shared work events, and includes her “Please stop contacting me” message from the first week.
  3. Police. She reports the parking lot message to police and gets a report number.
  4. Filing. With help from the court self-help center, she files for a stalking order and asks for a temporary order, which the judge grants pending a hearing.
  5. Workplace. She tells her manager and hospital security, who remove the comments from the page and arrange a parking escort.

At the hearing, the judge grants a longer order that bans all contact, including online and through third parties. When a new account messages her a month later, she reports it to police with the order and the screenshot. Outcomes in real cases depend on the state, the judge and the evidence.

If you don’t know who’s harassing you

Protective orders need a named respondent. If the harassment is anonymous:

  • keep documenting, since patterns often reveal who is behind the accounts,
  • report to the platforms and the police, who can sometimes request account information through legal process,
  • talk to a lawyer about whether a civil case could be used to identify the person,
  • focus on the protections you can use now: blocking, privacy settings and removing your personal information. Our guide on what to do about online harassment covers these steps.

Common mistakes

  • Waiting for it to get worse. Earlier documentation makes a stronger petition.
  • Exaggerating. Stick to what you can show. Credibility matters at the hearing.
  • Replying to the person after the order. It can confuse enforcement and give them a reason to claim contact was mutual.
  • Deleting messages because they’re upsetting. Move them to a separate folder instead.
  • Treating the order as a removal tool. It controls the person’s behavior; you still need to report content to platforms and search engines.

Cleaning up what’s already online

A protective order can stop new contact, but posts about you may already be in search results. Platform reports, Google removal requests for personal information, and building accurate profiles all help. If the harassment involved false claims about you, a lawyer can advise on defamation. Our personal reputation management team can help with the search side and will be honest about what can realistically be removed. For the legal background on harassment of students and young people, see our guide to cyberbullying laws.

Frequently asked questions

Do I need a lawyer to get a restraining order for online harassment?

No. Many people file on their own with help from court self-help centers or advocates. A lawyer or local legal aid organization can be very helpful, especially if the other person has a lawyer, the facts are complicated, or custody is involved.

Can a restraining order stop someone posting about me online?

It can ban them from contacting you, including online and through other people, and some orders bar posting your personal information. Orders that stop someone talking about you at all raise free speech issues, and courts differ. Ask a lawyer what’s realistic in your state.

How quickly can I get a protective order?

In urgent situations, many courts can issue a temporary order quickly, sometimes the same day, based on your petition. A longer order usually requires a hearing, which is scheduled after the other person is served.

What happens if the person violates the order?

Report it to the police with evidence, such as the message and the time it arrived. Violating a protective order is generally a crime or contempt of court, and it can lead to arrest.

Editorial Team

The 123 Reputation Management editorial team writes practical guides on reviews, search results and online reputation.

Start with step 1

See what people see when they search for you.

Get a free, no-obligation reputation audit covering search results, review profiles and social mentions, with clear next steps.