Yes. Code of Civil Procedure 527.6 lets a court issue a civil harassment restraining order, and the California Courts Self Help Guide says the harassment can happen anywhere, including online. For a spouse, partner or close relative, Family Code 6320 reaches conduct through online accounts and text messages.

Which restraining order fits online harassment?

It depends on the relationship. A domestic violence order covers a spouse, ex or close relative; a civil harassment order covers others, such as a neighbor or co-worker.

The California Courts Self Help Guide says: "You have to make sure you ask for the right one." It adds that "If you file the wrong type, the judge won't be able to make a decision in your case and you'll have to start the process over."

Your relationship to the person Order Where the rule is
A spouse or former spouse, a cohabitant or former cohabitant, a person you are dating or have dated or were engaged to, or another person on the Family Code 6211 list (such as the other parent of your child or a close relative) Domestic violence restraining order Family Code 6211 and 6320
Someone you were never more than friends with and are not closely related to, such as a neighbor or co-worker Civil harassment restraining order Code of Civil Procedure 527.6

The guide describes the first group as "someone you had a relationship with (more than friends), like your spouse, an ex, or your child's other parent", or "a close family member like your child, parent, grandparent, or sibling (not an aunt, uncle or cousin)." It describes the second as "someone you never had a relationship with (never more than friends) and are not closely related to."

What does a civil harassment order cover online?

Code of Civil Procedure 527.6 covers a knowing and willful course of conduct that seriously alarms, annoys or harasses a person, serves no legitimate purpose and causes substantial emotional distress.

The Self Help Guide's page on civil harassment restraining orders says an order "can be granted against someone who has: harassed, threatened, or harmed you physically or emotionally, or stalked you, and done these things anywhere, including online."

Section 527.6(b)(1) says a "course of conduct" includes "sending harassing correspondence to an individual by any means, including, but not limited to, the use of public or private mails, interoffice mail, facsimile, or email." Constitutionally protected activity is not part of a course of conduct.

A judge may issue a temporary order "based on a declaration that, to the satisfaction of the court, shows reasonable proof of harassment of the petitioner by the respondent, and that great or irreparable harm would result to the petitioner." After a hearing, the statute says: "If the judge finds by clear and convincing evidence that unlawful harassment exists, an order shall issue prohibiting the harassment." A temporary order request without notice is decided the same day or the next day of judicial business, a hearing follows within 21 days (25 for good cause), and an order after hearing may last up to five years (Section 527.6(e), (g) and (j)(1)). The firm's answer on asking for an order against someone harassing you covers the forms and the steps.

What does a domestic violence order cover online?

Family Code 6320 lets a court restrain harassing, contacting or disturbing the peace of the other party, and says that conduct can be through online accounts or text messages.

Family Code 6320(a) lets the court enjoin a party from, among other things:

  • "harassing"
  • "telephoning"
  • "credibly impersonating as described in Section 528.5 of the Penal Code"
  • "contacting, either directly or indirectly, by mail or otherwise"
  • "disturbing the peace of the other party"

Subdivision (c) defines the last of these as "conduct that, based on the totality of the circumstances, destroys the mental or emotional calm of the other party." The conduct may be committed "directly or indirectly, including through the use of a third party, and by any method or through any means including, but not limited to, telephone, online accounts, text messages, internet-connected devices," or "other electronic technologies."

The person asking must be in one of the relationships in Family Code 6211, which includes "A person with whom the respondent is having or has had a dating or engagement relationship." Abuse under the Domestic Violence Prevention Act includes "any behavior that has been or could be enjoined pursuant to Section 6320" (Family Code 6203(a)(4)), and it "is not limited to the actual infliction of physical injury or assault" (Section 6203(b)). The Self Help Guide's page on domestic violence restraining orders says abuse can "Take place anywhere, including online."

Is online harassment also a crime?

In some forms. Penal Code 653.2 makes it a misdemeanor to electronically distribute personal identifying information about someone, intending to cause fear and imminent harassment by a third party.

Penal Code 653.2(a) applies to a person who, "by means of an electronic communication device" and without the other person's consent, electronically distributes "personal identifying information, including, but not limited to, a digital image of another person, or an electronic message of a harassing nature about another person," with "intent to place another person in reasonable fear for his or her safety" and "for the purpose of imminently causing that other person unwanted physical contact, injury, or harassment, by a third party", where the information "would be likely to incite or produce that unlawful action". The punishment is a misdemeanor: a fine of not more than $1,000, county jail for up to 364 days (Penal Code 18.5(a)), or both. The firm's answers on doxxing and on cyberbullying explain the criminal side.

Frequently asked questions

Does one message count as harassment?

Section 527.6(b)(1) defines a course of conduct as "a pattern of conduct composed of a series of acts over a period of time, however short, evidencing a continuity of purpose". Harassment also includes "a credible threat of violence," defined as "a knowing and willful statement or course of conduct that would place a reasonable person in fear for the person's safety ... and that serves no legitimate purpose." Whether one message meets that definition is for the judge.

Does free speech limit these orders?

The civil harassment statute leaves constitutionally protected activity out of a course of conduct and requires conduct that "serves no legitimate purpose." The firm's answer on whether an order can stop someone from talking about you covers that limit.

Talk to a lawyer

The Law Offices of David S. Chesley represent people in domestic violence cases and restraining order matters across California (see the firm's domestic violence lawyer page).

The firm offers a free consultation, is available 24/7, and offers payment plans. Se habla español. Call (800) 755-5174 or request a free consultation online.

This page is general information, not legal advice, and no outcome is guaranteed.