Skip to content
LawMatch

How to get a protection order against online harassment

You can get a protection order against someone who harasses you by WhatsApp, SMS, email or social media. If the person is a partner, former partner or relative, apply under the Domestic Violence Act; otherwise, apply under the Protection from Harassment Act at the magistrates' court. There is no fee, an interim order can be granted the same day, and breaking the order is a crime. The order works best when your evidence is organised and the prohibitions you ask for are specific.

By Shephard Dube, LLB · 9 min read ·

Why trust us?

LawMatch guides are written in plain English by Shephard Dube, who holds an LLB degree. Every legal point is checked against the Act, regulation or court judgment it comes from, and the guide is reviewed when the law changes.

This is legal information, not legal advice. No attorney has reviewed this guide unless the byline says so.

How we write our guides
Checked against the law

The sources for this guide are South African Acts and regulations, court judgments and official government and regulator websites.

Last checked 16 November 2026.

Key points

  • The Protection from Harassment Act 17 of 2011 defines harassment to include unreasonable electronic communication aimed at you or a related person that the respondent knows or ought to know causes harm or a reasonable belief that harm may be caused.
  • If the harasser is a partner, former partner or family member, the Domestic Violence Act 116 of 1998 is usually the better route, because since 14 April 2023 a court granting an order must also order the service provider to remove the abusive electronic communication (section 5B(6)).
  • The court can prohibit harassment, enlisting others to harass you, and any other act it specifies (section 10(1)), and can add any condition reasonably necessary for your safety (section 10(2)). Ask for specific online prohibitions.
  • Where the harasser is anonymous, section 4 lets the court direct a South African electronic communications service provider to identify who is behind a number or address within five court days. It does not bind foreign platforms directly.
  • A final order lasts five years unless the court sets another period (section 9(8)). Breaching it is an offence carrying up to five years' imprisonment (section 18(1)).

The messages come at all hours. A colleague you turned down sends voice notes from a new number each time you block one. An account you do not recognise keeps tagging your employer in posts about you. Blocking does not stop it, and the platform sends back automated replies. Can a court make it stop?

It can. This guide explains which Act to use, when online conduct is serious enough to count, how to put the evidence together, what to ask the court to order, what happens when the account is anonymous or abroad, and what to do if the order is broken. Our guide to harassment protection orders explains the general procedure.

Which Act to use

The choice depends on your relationship with the harasser.

  • The Domestic Violence Act 116 of 1998 applies where you are or were in a domestic relationship: married, living together, dating or engaged for any length of time, parents of a child together, or family members. Since its amendments took effect on 14 April 2023, it deals directly with electronic abuse. A court can prohibit the respondent from disclosing any electronic communication specified in the order (section 7(1)(gA)), can direct a service provider to identify who sent a communication (section 5B(1)), and, when it grants an order, must also order the service provider hosting the abusive communication to remove it or disable access (section 5B(6)). Our guide to applying for a protection order explains that process.
  • The Protection from Harassment Act 17 of 2011 applies to everyone else: an ex-friend, colleague, neighbour, client, stranger or unknown account. No relationship is needed. Section 1(2) also allows a person who could use the Domestic Violence Act to choose this Act instead.

Do not apply under both Acts against the same person at the same time. The rest of this guide focuses on the Harassment Act.

When online conduct counts as harassment

Section 1 of the Harassment Act defines harassment as directly or indirectly engaging in conduct that the respondent knows or ought to know causes harm, or inspires the reasonable belief that harm may be caused, to you or a related person, by unreasonably engaging in "verbal, electronic or any other communication" aimed at you, whether or not a conversation follows. It also covers sexual harassment, which includes unwelcome sexual messages and a threat of reprisal for refusing a sexual request. Harm means mental, psychological, physical or economic harm.

Four features of the definition matter for online cases:

  • "Directly or indirectly." Conduct can count even if it is not sent to you, for example posts tagging your employer, or messages to your friends designed to reach you.
  • "Aimed at" you. The communication must be directed at you or a related person, such as a family member or someone close to you. General posts about a topic, which happen to upset you, usually do not qualify.
  • "Unreasonably." Under section 9(5) the court must consider, among other things, whether the conduct was aimed at detecting or preventing an offence or revealing a threat to public safety.
  • Harm or a reasonable belief of harm. You need not wait for a physical threat. Persistent abuse that causes real distress can be enough.

The courts have set a meaningful threshold. In Mnyandu v Padayachi 2017 (1) SA 151 (KZP), decided on 1 August 2016, the KwaZulu-Natal High Court set aside an order granted over a single email that a colleague had circulated, and warned against reading the definition so widely that the Act is used for conduct it was not meant to cover. A protection order is not a remedy for one rude comment or a negative review. If your real complaint is a single damaging post, a defamation claim may fit better, as our guide to suing for defamation on social media explains.

Building the evidence

The magistrate has to see the pattern quickly, often on the day you apply.

  • Capture everything with context. Take screenshots that show the sender's name or number, the profile link, the date and the time. For posts, include the web address. Screen recordings are useful for voice notes, stories that disappear and scrolling threads.
  • Keep the originals. Do not delete chats, emails or accounts that received the messages. Many apps let you export a chat or download your account data, which preserves dates and senders.
  • Make a timeline. List each incident in date order with a one-line description and a reference to the screenshot.
  • Show the effect on you. Note missed work and any medical or counselling visits.
  • Get supporting affidavits. Section 2(6) allows affidavits from people who know about the matter, such as a friend who received messages about you or a colleague who saw the posts.
  • Show you asked them to stop. One clear message saying "Do not contact me again" helps prove the conduct was unwanted. After that, stop engaging.

Our guide to writing a protection order statement explains how to turn this into a clear affidavit.

Applying and the interim order

You apply at the magistrates' court where you live or work, where the respondent lives or works, or where the harassment happened (section 14). There is no fee. If you are at risk of harm, the application can be brought after hours (section 2(5)).

Under section 3(2), if there is prima facie evidence (evidence that, if not answered, would establish the point) of harassment, a risk of harm if no order is made immediately, and a risk that notice would defeat the purpose, the court must grant an interim order without first hearing the respondent. The order takes effect once it is brought to the respondent's attention, and the return date must be at least 10 days after service (section 3(5)).

What to ask the court to order

Section 10(1) lets the court prohibit the respondent from harassing you, from enlisting someone else to harass you, and from "committing any other act as specified in the protection order". Section 10(2) lets it impose any additional condition reasonably necessary for your safety or well-being. Generic orders are hard to enforce online, so ask for specific terms. For example, the respondent may not:

  • contact you by any means, including through new numbers, new accounts or other people's accounts;
  • post, share or send images of you or messages about you;
  • tag you, your employer or your family in posts;
  • publish your home or work address or phone number;
  • create accounts using your name or photos.

You can also ask for a condition that the respondent removes specified posts within a set time. The Act has no express power to order a platform to remove content, so whether a magistrate will include such a condition against the respondent depends on the court. The court will keep the terms proportionate: an order stops harassment, not lawful criticism. Under section 10(4), your home and work addresses must be left out of the order unless its terms require them.

When the account is anonymous or abroad

Under section 4, if the court is satisfied that an order should be made and the harassment came through an electronic communications service, but the respondent's identity is unknown, it can adjourn and direct an electronic communications service provider to supply, by affidavit, the number or address the messages came from and the name, identity number and address of the person it is assigned to. The provider has five ordinary court days to answer. Section 5 also lets the court direct the police to investigate the respondent's name and address. Our guide to unmasking an anonymous sender explains this step.

There is a limit. The Act covers service providers licensed, or exempted from licensing, under the Electronic Communications Act: South African networks and internet providers, not most foreign social media companies. Where the harassment is on a foreign platform, the route is often indirect: tracing the phone number or email linked to the account through a local provider, or a police investigation. The Cybercrimes Act's own chapter on international cooperation (Chapter 5) had not been brought into force as at November 2026.

An order is enforceable throughout South Africa (section 14(3)), but has little practical effect against someone who lives abroad and never returns.

The return date, the final order and breaches

On the return date, if the respondent was properly served and does not appear, the court must make the order final if the papers contain prima facie evidence of harassment (section 9(1)). If the respondent opposes, the court hears evidence and grants the order if harassment is proved on a balance of probabilities (section 9(4)). Costs can be ordered only against a party who acted frivolously, vexatiously or unreasonably (section 16).

A final order lasts five years unless the court sets another period (section 9(8)). With the order, the court issues a suspended warrant of arrest (section 11). If the respondent breaches it, for example from a new account, report it at a police station with screenshots and the order. Breach is an offence carrying a fine or up to five years' imprisonment (section 18(1)). The guide to breached protection orders explains the police's duties.

Worked example

This example is illustrative. Precious, 34, is an estate agent in Polokwane. After she refused to deal with a former client, Thabo, he began sending her WhatsApp messages calling her a thief, posted on Facebook tagging her agency, and messaged her sister. When she blocked him, new numbers appeared. Over five weeks there are 46 incidents.

Precious makes a timeline with screenshots showing each number, date, time and link, and her sister signs a supporting affidavit. At the magistrates' court she asks for an order prohibiting Thabo from contacting her by any means, from tagging her or her agency, and from contacting her family about her. The magistrate grants an interim order the same day. Thabo does not appear on the return date, and the order is made final. Two months later he messages her from a new Instagram account. She reports the breach, and he is arrested.

Change the facts: if Thabo had posted one angry review and stopped, an order would probably be refused, and a false, damaging review would call for a defamation claim instead.

What to do

  1. Send one message asking the person to stop, then stop replying. Do not delete anything.
  2. Screenshot every incident with the sender, date, time and link, and build a dated timeline.
  3. Ask people who received messages about you for short supporting affidavits.
  4. Apply at the magistrates' court: under the Domestic Violence Act for a partner, ex-partner or relative, and under the Protection from Harassment Act for anyone else. Ask for specific online prohibitions.
  5. If the account is anonymous, ask the court for a section 4 direction. If the order is breached, report it immediately with the order and fresh screenshots.

What it typically costs

Updated Nov 2026
Item Typical range
Initial consultation An estimate. Some firms give a short free first meeting. Bring screenshots with dates and links. It should end with a view on your options and a written fee estimate. R0 – R3 000
Letter of demand asking for removal, a retraction and an apology An estimate. A short letter about one post at the bottom, a detailed letter covering several posts and a damages demand at the top. R2 500 – R12 000
Reply to a defamation letter of demand An estimate. Includes assessing whether you can prove a defence. A short removal and apology costs less than a reply that disputes the claim. R3 000 – R15 000
Attorney help with a protection order, including an opposed return date An estimate. The application itself is free and most people bring it without an attorney. This is for drafting help or representation at a contested hearing. R5 000 – R30 000
Watching brief in a criminal case about threats, images or hacking An estimate. An attorney follows the prosecution for you as the complainant and liaises with the investigating officer and prosecutor. Laying the charge is free. R5 000 – R30 000
Urgent High Court application to remove a post, unopposed An estimate, with an attorney and an advocate. Covers the founding affidavit, the court papers and one hearing. Sheriff's fees are on top. R25 000 – R60 000
Urgent High Court application to remove a post, opposed An estimate. Answering and replying affidavits and a contested hearing with counsel. A complex matter can cost more. R80 000 – R250 000
Defamation damages claim in the magistrates' court, through to trial An estimate, per side, whether you sue or defend. Settled after pleadings at the bottom, a defended trial with witnesses at the top. R40 000 – R150 000
Defamation action in the High Court, through to trial An estimate, per side. Includes counsel, discovery, expert or witness costs and a trial of several days. Appeals cost more again. R150 000 – R600 000
Full cost breakdown →

Estimates only. Actual fees vary by attorney and complexity.

When you need an attorney

You should speak to an attorney if:

  • the respondent is opposing the order and has a lawyer
  • the harassment is coming from anonymous accounts on foreign platforms
  • the posts are also damaging your business or reputation and you may have a defamation claim
  • you need specific online prohibitions drafted, including removal of posts
  • someone has applied for an order against you over your own posts or messages
Match with an attorney

Frequently asked questions

Can I get a protection order for harassment on social media?
Yes. The Protection from Harassment Act covers electronic communication aimed at you, and the Domestic Violence Act covers electronic abuse by a partner or family member. The conduct must be unreasonable and cause harm or a reasonable belief that harm may be caused.
Is one nasty post enough for an order?
Usually not. Courts have held that the Act is not meant for a single unpleasant communication, and a damaging post may be better dealt with as defamation. A pattern of unwanted contact, or a single serious threat, is more likely to succeed.
What if I do not know who is behind the account?
Under section 4 of the Harassment Act, the court can direct a South African service provider to identify the person behind a number or address within five court days. Foreign platforms are not directly bound, so tracing may have to go through a linked phone number or a police investigation.
Does it cost anything to apply?
There is no court fee, and you do not need an attorney. Costs can be ordered against a party only if they acted frivolously, vexatiously or unreasonably.
What happens if they keep messaging after the order?
That is a breach of the order and a crime carrying up to five years' imprisonment. Take screenshots and report it at a police station with a copy of the order and the warrant of arrest.

Laws and court decisions referred to

Legislation

  • Domestic Violence Act 116 of 1998
  • Protection from Harassment Act 17 of 2011

Court decisions

  • Mnyandu v Padayachi 2017 (1) SA 151 (KZP)

Cite this page: LawMatch, "How to get a protection order against online harassment", https://lawmatch.co.za/guides/defamation-and-online-harm/protection-order-for-online-harassment, last reviewed 16 November 2026.

Not legal advice. LawMatch is not a law firm and does not provide legal advice. Information is general and may not apply to your situation.

Get plain-English legal updates

One email a fortnight. Your rights, what things cost, and how to avoid common traps. Unsubscribe any time.

Related topics

Related guides

  • Can I sue for defamation on social media?

    Yes. A post on Facebook, X, TikTok or a WhatsApp group can be defamatory in exactly the same way as anything printed. You must show the statement was published to someone else, that it refers to you, and that it harms your reputation.

  • Can a business or company sue for defamation?

    Yes. A company, close corporation or other trading business can sue for defamation that harms its business reputation, and can ask for an order to remove the statement. Since Reddell v Mineral Sands (2022), a trading company can claim general damages only at the court's discretion, and not where the statement was part of public debate on a matter of public interest. A company cannot claim for hurt feelings, and a business that sues mainly to silence a critic risks having the case thrown out.

  • Can you be sued for a Google review or a Hellopeter complaint?

    Yes, but an honest review of a real experience is usually safe. The risk comes from statements of fact you cannot prove, such as calling a business a scam or saying it stole your money, and from leaving out facts that would change the picture. A business can sue for defamation and ask a court to order a review removed.

  • Can you be sued for sharing, retweeting or liking a defamatory post?

    Yes, for sharing, retweeting, forwarding or screenshotting. In South African law every repetition of a defamatory statement is a fresh publication, and "I only shared it" is not a defence. Whether a like alone is publication has not been decided by a South African court, but tagging, endorsing comments and leaving abusive comments under your own post have all led to liability or court orders.

Match with a defamation & online harm attorney