AskLegal.my

The Online Safety Act Does Not Cover WhatsApp Messages Sent To You. Other Laws Do.

17 min read

If messages are frightening you, help is available now.

  • Talian Kasih 15999 — 24 hours. WhatsApp 019-261 5999
  • WAO 03-3000 8858 — TINA WhatsApp 018-988 8058
  • AWAM 03-7877 0224
  • Talian HEAL 15555 — mental health, 8am–midnight
  • Befrienders KL 03-7627 2929 — 24 hours
  • Emergency: 999 · Scams: NSRC 997 You are not overreacting. Repeated unwanted contact is recognised as a criminal offence in Malaysia. In a WAO poll of 1,008 respondents, 88% reported experiencing at least one act related to stalking. Before you block: screenshot everything. Blocking can cut off your access to the message history you will need.

Here is something worth knowing before you report a problem to the wrong place.

Malaysia's Online Safety Act 2025 came into force on 1 January 2026 — and it does not apply to private messaging.

That is not an oversight in reporting; it is stated repeatedly and consistently. ONSA does not impose obligations on individual users, does not apply to private messaging features, and does not authorise general monitoring of users. Practitioner analysis lists private messaging as "a notable exclusion under the Act."

So if someone is sending you abusive WhatsApp messages, ONSA is not your route. The platform duties that apply to a public Facebook post do not apply to a one-to-one chat.

What does apply: the Penal Code and the Communications and Multimedia Act — and they cover this conduct properly.

One live development. In July 2026 the Communications Minister told Parliament that proposed regulations governing private-messaging features were undergoing public consultation until 20 July 2026, as the last of ten subsidiary instruments under ONSA. We could not verify whether those regulations have been made or what they contain — check the current position.

s.507A Penal Code (in force 2023) criminalises stalking — repeated acts of harassment intended or likely to cause distress, fear or alarm — punishable by up to 3 years, a fine, or both. The acts must be repeated on at least two occasions. It covers online and physical conduct, and "communicating or attempting to communicate with a person in any manner or by any means" is an express example. s.98A CPC lets a victim apply for a Protection Order. s.503/506 cover criminal intimidation. s.233 CMA covers offensive electronic communications with intent to annoy, abuse, threaten or harass — now up to RM500,000 and 2 years, with a heavier penalty where a child under 18 is involved.

1. Section 507A — the stalking provision

The offence: whoever repeatedly, by any act of harassment, intending to cause, or knowing or ought to know that the act is likely to cause, distress, fear or alarm to any person or to the person's safety, commits the offence of stalking.

"Acts of harassment" under s.507A(2) — a non-exhaustive list, so the Court can interpret it case by case:

  • following or tracking a person in any manner or by any means
  • communicating or attempting to communicate with a person in any manner or by any means
  • loitering at the person's residence or place of business
  • giving or sending anything to a person in any manner or by any means

The second limb is the one that covers messaging. "Communicating or attempting to communicate… in any manner or by any means" plainly reaches WhatsApp, Telegram, SMS and DMs.

The "at least twice" requirement. To establish stalking, the offending behaviour must have been repeated on at least two occasions, the victim must have been disturbed by it, and they must be in a state of stress or fear as a result.

Three points people get wrong:

  • It applies to online as well as physical stalking. Parliament passed it as covering both.
  • You do not need to know who the stalker is. The section does not require the victim to know the stalker's identity.
  • The stalker's actions need not actually have caused distress. It is enough that they knew or ought to have known their actions were likely to cause distress, fear or alarm.

Penalty: imprisonment up to three years, or a fine, or both.

Why it exists. Before 2023 there was no adequate Malaysian offence covering the pattern of ongoing conduct — existing laws treated each act separately, which missed the point of stalking. The provision followed the case of photographer Acacia Diana, whose stalker harassed her for nearly eight years, including tracking her to the UK. The first person charged under the new law was reported as Muhammad Safiq Rosli, 37.

2. Protection orders — section 98A CPC

This is the practical remedy most victims want and few know exists.

The Criminal Procedure Code was amended alongside the anti-stalking law to insert a new Chapter XA and s.98A, empowering the courts, on application, to issue a Protection Order against a person who is under investigation for, or has been charged with, stalking under s.507A.

What it does: it stops the perpetrator from further stalking you or coming near you.

Why this was significant: before the amendment, a protection order was in practice only available to divorced couples. WAO welcomed the change as giving victims a route to redress they did not previously have.

How to get one: apply to the Court. You will want a lawyer, and your police report is the foundation — the order is available against a person under investigation, so the report comes first.

3. Criminal intimidation — ss.503 and 506

Section 503 defines criminal intimidation. Section 506 provides the punishment.

Use this where the messages contain threats — to your person, reputation or property, or to someone you care about — intended to cause you alarm or to make you do or not do something.

Note the practical point: criminal intimidation does not require repetition. A single sufficiently serious threat can be an offence, where stalking under s.507A requires at least two occasions.

Section 509 covers words or gestures intended to insult modesty.

4. Section 233 CMA — the electronic communications route

s.233(1) covers making, creating, soliciting or initiating the transmission of any comment, request, suggestion or other communication which is obscene, indecent, false, menacing or grossly offensive in character, with intent to annoy, abuse, threaten or harass another person.

Following the 2025 amendments (gazetted 7 February 2025, in force 11 February 2025):

  • penalty raised to RM500,000 and up to 2 years
  • "offensive" became "grossly offensive", with explanatory notes added
  • a heavier penalty where the offence involves a child under 18: RM500,000 and/or 5 years, plus a further fine of RM5,000 for each day the offence continues after conviction

An important caveat. Section 233 is under active constitutional challenge — the Court of Appeal held the pre-2025 wording unconstitutional in August 2025 and the Federal Court partly reversed that in February 2026. It remains in force and prosecutions continue, but do not treat it as a settled route. See (Someone Leaked Your Intimate Images. In June 2026 A Malaysian Court Upheld RM60,000 Against A Man Who Did That.).

5. If it is sexual harassment — TAGS may be better than the police

This is the choice most people do not know they have.

The Tribunal for Anti-Sexual Harassment (TAGS), established 8 March 2024 under s.3 of the Anti-Sexual Harassment Act 2022 (Act 840), hears complaints of sexual harassment occurring in Malaysia on or after 8 March 2024.

"Sexual harassment" under ASHA means any unwanted conduct of a sexual nature, in any form — verbal, non-verbal, visual, gestural or physical — committed against another individual which is offensive, humiliating or threatening. Messages plainly fall within "verbal" and "visual".

Police / criminal routeTAGS
Standard of proofBeyond reasonable doubtBalance of probabilities
Who decides to proceedPolice and prosecutorsYou file
RemediesConviction, sentence, protection orderApology, published apology, compensation up to RM250,000, attendance at a programme
FilingPolice reportOnline via e-TAGS, operating since 1 January 2026
Time limitConduct on or after 8 March 2024

TAGS awards are enforceable. On 10 June 2026 the Kuala Lumpur High Court upheld a TAGS award of RM60,000 plus a written apology and counselling against a man who shared his ex-girlfriend's intimate images — the first TAGS decision challenged in court, and the challenge failed.

You can use both routes. TAGS is separate from a police report.

6. Preserving WhatsApp evidence properly

Do this before you block, report or delete anything.

The mistake people make: blocking first. Depending on your settings and device, blocking can remove your ability to see the profile, the number and sometimes the history you need.

The method:

  1. Screenshot each message individually, making sure the screenshot shows: - the sender's number or contact name at the top - the date separator and the timestamp on the message - the message itself in full — scroll and take overlapping screenshots for long ones
  2. Screenshot the contact's profile — number, display name, profile photo, "last seen" if visible.
  3. Export the chat. WhatsApp's built-in export produces a dated text file of the whole conversation — far more complete than screenshots and much harder to dispute. Export with media if the messages include images or voice notes.
  4. For group chats, screenshot the group name, description and participant list as well.
  5. Do not edit, crop or annotate anything you are keeping as evidence.
  6. Save in two places: on a device you control and in a cloud account with a password the sender has never had.
  7. Keep a written log: date, time, what was sent, how it made you feel, whether anyone else saw it.
  8. Note any witnesses — people in the group, or friends you showed the messages to at the time.

Do not reply to gather evidence. You do not need to bait a confession, and replying can complicate your position.

If you are being asked for money or images to stop the messages, that is extortion — a separate and serious offence. Do not pay. Preserve everything and report.

7. Block or report?

Both, in the right order.

When
Preserve firstAlways. Before anything else.
BlockOnce preserved, to stop the immediate distress. But note that blocking does not stop the conduct being an offence, and it does not stop someone using a new number.
Report to the platformFor account-level action. Platform reporting is not a substitute for a police report.
Police reportWhere the messages are threatening, repeated, or involve images. This is the foundation for a s.98A protection order.
TAGSWhere the conduct is sexual harassment on or after 8 March 2024.

A word on new numbers. Repeated contact from changing numbers strengthens a stalking case rather than weakening it — it evidences persistence. Preserve each one.

What to actually do

Right now: 1. Preserve the evidence — export the chat, screenshot with timestamps and sender visible. 2. Tell someone. Talian Kasih 15999, WAO 03-3000 8858, TINA 018-988 8058. 3. Do not pay anyone demanding money.

Then: 4. Lodge a police report. Bring your exported chat and screenshots on a device and, if you can, printed. Say clearly if the contact has been repeated and roughly how many times — the "at least twice" threshold matters for s.507A. 5. Ask about a protection order under s.98A CPC. It is available against someone under investigation for stalking. 6. Consider TAGS if the conduct is sexual harassment occurring on or after 8 March 2024 — file through e-TAGS. Compensation up to RM250,000, on the balance of probabilities. 7. Get legal advice. Bar Council Legal Aid Centres: malaysianbar.org.my.

If the person sending them is a partner, ex-partner or family member, the Domestic Violence Act 1994 may also apply, and WAO and AWAM can advise on that specifically.

If the recipient is a child, the position is more serious — s.233 CMA carries a heavier penalty where a child under 18 is involved, and other child protection provisions apply. Report immediately and call Talian Kasih 15999.

FAQ

Does the Online Safety Act cover WhatsApp messages sent to me?

No. ONSA does not apply to private messaging features, does not impose obligations on individual users, and does not authorise general monitoring. Regulations covering private-messaging features were under public consultation to 20 July 2026 — check the current position.

Is sending abusive WhatsApp messages a crime in Malaysia?

It can be. Section 507A covers repeated harassment including communicating by any means; ss.503 and 506 cover criminal intimidation; and s.233 CMA covers offensive electronic communications sent with intent to annoy, abuse, threaten or harass.

How many messages does it take to be stalking?

The acts of harassment must be repeated on at least two occasions, and the victim must have been disturbed and be in a state of stress or fear as a result.

What if the messages did not actually frighten me but were meant to?

Section 507A does not require that the actions actually caused distress. It is enough that the person knew or ought to have known the acts were likely to cause distress, fear or alarm.

Can I get an order stopping them contacting me?

Yes. Section 98A CPC allows a victim to apply to the Court for a Protection Order against a person under investigation for, or charged with, stalking under s.507A.

Should I block them?

Preserve the evidence first — export the chat and screenshot with timestamps and sender visible — then block. Blocking does not stop the conduct being an offence.

A single threatening message — is that enough?

Possibly, under criminal intimidation (ss.503 and 506), which does not require repetition in the way s.507A does.

Police or TAGS?

Both are available. TAGS uses the civil standard, you file it yourself, and it can award compensation up to RM250,000 — but only for sexual harassment occurring on or after 8 March 2024.

This article is general legal information, not legal advice, and reading it does not create a lawyer–client relationship.

If messages are frightening you, please use the numbers at the top of this page. Nothing about this is your fault.

Specific to this article: regulations governing private-messaging features under the Online Safety Act 2025 were reported in July 2026 as undergoing public consultation until 20 July 2026, and we could not verify whether they have been made or what they provide — the statement that ONSA does not apply to private messaging reflects the position as at our verification date and may change. Section 233 of the CMA is under active constitutional challenge, with the Court of Appeal having held the pre-2025 wording unconstitutional in August 2025 and the Federal Court partly reversing in February 2026; its scope may continue to change. Section numbering and penalty figures are drawn from practitioner commentary and reporting rather than statutory texts we retrieved in full; verify against the current reprints of Act 574, Act 593 and Act 588 at agc.gov.my. Whether particular messages meet the threshold for any of these offences is fact-specific and is a matter for the police, prosecutors and the courts. TAGS jurisdiction is limited to sexual harassment occurring in Malaysia on or after 8 March 2024. If you are in immediate danger, call 999.

Spot something outdated or wrong? Tell us — we’ll verify and correct it, with the correction noted.

Key sources (15) — how this was verified
  • Xavier & Koh Partnership, "Stalking Someone Is Now A Crime In Malaysia" — s.507A(2) defining acts of harassment as including following or tracking a person in any manner or by any means; communicating or attempting to communicate with a person in any manner or by any means; loitering at the place of residence or business of a person; and giving or sending any thing to a person in any manner or by any means, with the word "may" indicating the list is not exhaustive; the penalty of imprisonment not more than three years or a fine or both; and the new s.98A CPC under which a victim of stalking may apply to the Court for a Protection Order against a person being investigated for stalking: https://www.xklaw.com.my/stalking-someone-is-now-a-crime-in-malaysia/
  • HWAM, "Section 507A of the Penal Code of Malaysia" — the s.507A definition of stalking as repeatedly by any act of harassment, intending to cause, or knowing or ought to know that the act is likely to cause, distress, fear or alarm to any person of the person's safety; the requirement that acts of harassment be repeated on at least two occasions; the punishment of up to three years, a fine, or both; and the notes that the section applies to both physical and online stalking, does not require the victim to be aware of the stalker's identity, and does not require the stalker's actions actually to have caused distress — it is sufficient that the stalker knows or ought to know the actions are likely to cause these emotions: https://hwam.com.my/section-507a-of-the-penal-code-of-malaysia/
  • Women's Aid Organisation, 14 June 2023, "Malaysia's Anti-Stalking Law Now Operational" — the definition of stalking as a repeated act of harassment intended or likely to cause distress, fear or alarm; the examples of repeated following, tracking and communicating, showing up at a house or workplace, and sending things, either online or physically; and the availability of a Protection Order for Stalking which stops the perpetrator from further stalking or coming near the victim: https://wao.org.my/malaysias-anti-stalking-law-now-operational/
  • The Star, 29 March 2023, "Online and physical stalking is now a crime" — the text of the new s.507A, the maximum three-year jail term, fine or both; and the amendments to the Criminal Procedure Code creating a new s.98A, with Deputy Minister Ramkarpal Singh noting that at the time a protection order was only available to divorced couples: https://www.thestar.com.my/news/nation/2023/03/29/online-and-physical-stalking-is-now-a-crime
  • FMT, August 2022 — the amendment bill inserting s.507A into Act 574, and the CPC amendment inserting a new Chapter XA into Act 593 to empower the courts, upon application, to issue a protection order against a person under investigation or charged with stalking under s.507A; and the origin of the proposal in the 2019 Anti-Stalking Committee: https://www.freemalaysiatoday.com/category/nation/2022/08/04/stalking-an-offence-under-penal-code-amendment
  • Law Majalla (IIUM), "The Legal Recognition of Stalking in Malaysia" — the explanation that before s.507A there were no adequate specific legal protections or restraining orders, and that existing laws (the Domestic Violence Act 1994, public nuisance provisions, the Penal Code and the CMA 1998) did not cover the repeated, continuous acts of following and contacting that form the core of stalking, being viewed as separate acts while stalking is a pattern of ongoing actions; and the reporting of Muhammad Safiq Rosli, 37, as the first man charged under Malaysia's anti-stalking law: https://lawmajalla.iium.edu.my/2025/11/19/the-legal-recognition-of-stalking-in-malaysia-understanding-section-507a-of-the-penal-code/ and https://lawmajalla.iium.edu.my/stalking/
  • LegalAdvice.com.my, "Anti Stalking Law in Malaysia" — the requirement that the behaviour be repeated at least twice, that the victim has been disturbed by it, and that they are in a condition of stress or fear as a result; the point that where a stalker acts under another's direction that person may also be charged under s.34 of the Penal Code; and the WAO poll finding that 88% of 1,008 respondents reported experiencing at least one act related to stalking: https://legaladvice.com.my/anti-stalking-law-malaysia/
  • Penang Institute, "Protecting Women: An Overview of Women's Legal Rights in Southeast Asia" — the coverage of repeated unwanted messages, online tracking and excessive likes or emojis; s.506 of the Penal Code for criminal intimidation and s.509 for insulting modesty; the reinforcement of s.233 CMA 1998 to penalise offensive and obscene content shared electronically; and the note that s.507A followed the case of photographer Acacia Diana, whose stalker harassed her for nearly eight years including tracking her to the UK: https://penanginstitute.org/wp-content/uploads/2025/03/Protecting-Women-An-Overview-of-Womens-Legal-Rights-in-Southeast-Asia.pdf
  • Journal of Malaysian and Comparative Law (UM), "Cyber Sexual Harassment & Victim Protection Laws" — the citations to s.507A(2), s.98A(1), (2), (6), (7) and (8) of the Criminal Procedure Code, and s.233(1)(a), (1)(b) and (3) of the CMA 1998; and the Anti-Sexual Harassment Act 2022 definition of sexual harassment as "any unwanted conduct of a sexual nature, in any form, whether verbal, non-verbal, visual, gestural or physical, committed against another individual which is offensive, humiliating or threatening", together with the establishment of the Tribunal for Anti-Sexual Harassment: https://ejournal.um.edu.my/index.php/JMCL/article/download/62060/18440/172351
  • Mayer Brown / Mondaq, "Short Deadlines, Significant Penalties: Malaysia's Online Safety Act in Focus", July 2026 — the three scope points that ONSA does not impose obligations on individual users, that ONSA does not apply to private messaging features, and that ONSA applies outside Malaysia where a person provides covered services in Malaysia and holds a CMA licence; and the s.46A CMA deemed-registration mechanism for internet messaging and social media providers with at least eight million Malaysian users: https://www.mayerbrown.com/en/insights/publications/2026/07/short-deadlines-significant-penalties-malaysias-online-safety-act-in-focus and https://www.mondaq.com/it-and-internet/1812846/short-deadlines-significant-penalties-malaysias-online-safety-act-in-focus
  • Sinar Daily / FMT / Bernama, February 2026 — the consistent statements that ONSA does not apply to private one-to-one messaging, does not authorise general monitoring of users, and does not introduce new criminal offences related to lawful speech or political expression, with safeguards including notice requirements before enforcement action, opportunities to make representations, public records of regulatory directions and access to appeal and judicial review; and Communications Ministry deputy secretary-general Mano Verabathran's statement that ONSA does not target individuals or private one-to-one communications: https://www.sinardaily.my/article/733572/focus/exclusives/online-safety-act-2025-what-it-means-for-platforms-and-users, https://www.freemalaysiatoday.com/category/nation/2026/02/04/what-the-online-safety-act-changes-and-how-it-works and https://www.bernama.com/en/region/news.php?id=2510095
  • RDS Law Partners, "From Platform Discretion To Statutory Oversight: Malaysia's Online Safety Act 2025" — the identification of private messaging features as "a notable exclusion under the Act"; the deemed registration of all internet messaging and social media service providers with eight million or more Malaysian users as ASP Class licensees from 1 January 2026; and the elevation of child sexual abuse material and financial fraud as "priority harmful content": https://www.rdslawpartners.com/post/from-platform-discretion-to-statutory-oversight-malaysia-s-online-safety-act-2025
  • MLex, 3 July 2026 — Communications Minister Datuk Fahmi Fadzil telling Parliament that Malaysia is finalising the ONSA regulatory framework with proposed regulations governing private-messaging features, the last of 10 subsidiary instruments, undergoing public consultation until 20 July 2026: https://www.mlex.com/mlex/technology/articles/2497044
  • AmerBON Advocates, on the amended s.233 CMA — the increase in penalty from not exceeding RM50,000 and one year to not exceeding RM500,000 and two years, and the addition of "grossly" before "offensive": https://www.amerbon.com/blawg/self-defeating-amendments-to-section-233-of-cma
  • IJRISS / rsisinternational, "Online Child Safety" — the special penalty under s.233 CMA for offences involving a child under eighteen of RM500,000 and/or 5 years' imprisonment, with a further fine of RM5,000 for every day the offence continues after conviction: https://rsisinternational.org/journals/ijriss/uploads/vol9-iss11-pg4479-4486-202512_pdf.pdf