Digital harassment has become an everyday threat for Moroccan women
Imagine a young bank employee living in Casablanca’s Maârif district. For several weeks, a former colleague has been sending her WhatsApp messages late at night. At first, they are framed as compliments. Then come the sexual remarks, repeated calls, threats to contact her employer and, eventually, a photograph taken without her knowledge. She blocks the number in panic and deletes the conversation. The harassment stops for two days, then resumes from another account.
This scenario is fictional, but it reflects cases regularly brought before lawyers, police services and women’s support organisations in Morocco. Digital violence may begin on WhatsApp, Instagram, Facebook, TikTok, Telegram, email or a workplace messaging system. Its consequences, however, are not virtual. Victims lose sleep, change jobs, withdraw from public life and sometimes fear physical assault.
The High Commission for Planning, or HCP, documented the broad prevalence of violence against women in its 2019 national survey. The available figures should not be interpreted as showing that half of all Moroccan women have specifically suffered cyberharassment; the survey covers several forms and settings of violence. What is clear is that smartphones and social networks have created an additional channel through which threats, sexual pressure, humiliation and coercive control can be exercised.
Public debate ahead of the 2026 legislative elections has again placed women’s dignity, political participation and online abuse on the agenda. Associations, including organisations with very different ideological positions, are asking political parties to address the exploitation of women’s images and digitally facilitated violence. Yet victims cannot wait for a future reform. Moroccan criminal law already offers remedies, although the framework remains fragmented and its practical enforcement is uneven.
The principal legislative turning point was Law No. 103-13 on combating violence against women, promulgated by Dahir No. 1-18-19 of 5 Joumada II 1439, corresponding to 22 February 2018. The French version appears in Official Bulletin No. 6680 of 7 June 2018. It amended both the Criminal Code and the Code of Criminal Procedure, including provisions relevant to electronic sexual harassment, unlawful recording, non-consensual distribution and violence committed by a spouse or former spouse.
What does digital harassment mean under Moroccan law?
There is no single offence called “cyberharassment”
Moroccan law does not currently contain one autonomous offence covering every form of repeated online harassment. A prosecutor must identify the precise conduct and apply one or more existing provisions. Depending on the facts, the case may involve sexual harassment by electronic means, threats, defamation, insult, unlawful access to a computer system, interception of private communications, non-consensual publication, blackmail or identity misuse.
This matters because an unpleasant message is not automatically a criminal offence. The words used, their sexual purpose, repetition, the relationship between the parties, the victim’s age, the existence of threats and the way an image was obtained or distributed can all alter the legal classification and the applicable sentence.
Law No. 103-13 defines violence against women broadly by reference to acts based on sex that cause physical, psychological, sexual or economic harm. This definition helps explain the purpose of the legislation, but a conviction still requires proof of the constituent elements of a specific Criminal Code offence.
Electronic sexual harassment under Article 503-1-1
Article 503-1-1 of the Moroccan Criminal Code punishes harassment committed in public spaces or elsewhere through acts, words or signals of a sexual nature or for sexual purposes. It expressly addresses messages sent by telephone, electronically, or through recordings or images of a sexual nature or sent for sexual purposes.
Article 503-1-1 provides, in substance, for imprisonment of one to six months and a fine of 2,000 to 10,000 dirhams, or either penalty, for the conduct covered by that provision. The penalties are doubled in the event of a repeat offence.
This is the provision most directly relevant to repeated sexual messages on WhatsApp, unsolicited explicit photographs, sexual voice notes or persistent sexual approaches through social networks. Contrary to a frequent online claim, Article 503-1-1 is not a general offence of “moral harassment” covering every hostile digital exchange. Its wording is tied to conduct of a sexual nature or sexual purpose.
Article 503-1, which predates Law No. 103-13, separately addresses sexual harassment through abuse of authority arising from functions. It can be relevant where a manager, employer, professor or person exercising professional authority uses that position to obtain sexual favours. A workplace case may therefore require analysis under Article 503-1, Article 503-1-1, labour law and the employer’s disciplinary obligations.
Aggravated situations under Article 503-1-2
Article 503-1-2 establishes heavier punishment where the perpetrator is an ascendant, a close relative within the legally specified prohibited degrees, a person exercising authority or guardianship over the victim, or where the victim is a minor. The applicable punishment is three to five years’ imprisonment and a fine of 5,000 to 50,000 dirhams.
The exact aggravating provision must be checked against the relationship and facts. One should not assume that every message sent by an ex-partner automatically falls under Article 503-1-2. Nevertheless, Law No. 103-13 introduced or strengthened several aggravating rules concerning spouses, former spouses and persons close to the victim, particularly for violence and privacy offences.
Recognisable forms of cyberviolence
Digital violence against women in Morocco commonly includes repeated sexual messages, threats to publish private photographs, impersonation accounts, disclosure of a telephone number, location tracking, account intrusion, defamatory posts, digitally altered images, “doxxing” of personal information and coercive monitoring by a spouse or former partner.
The legal response may combine several provisions. For example, an ex-partner who enters a woman’s email account, downloads private photographs and threatens to publish them unless she returns to the relationship may face allegations involving unlawful system access, privacy offences and threats or extortion. The criminal classification should follow the evidence rather than a label chosen on social media.
Law No. 103-13: what protection does it provide in practice?
A major reform, but not a complete digital-safety code
The adoption of Law No. 103-13 followed years of mobilisation by Moroccan women’s rights organisations. The national reaction to the 2012 Amina Filali tragedy also intensified scrutiny of the legal treatment of violence against women, although the 2018 statute resulted from a broader and longer reform process.
The law was a turning point because it introduced definitions, amended criminal offences, recognised electronic means in sexual harassment and created procedural and institutional mechanisms for victims. It also reinforced specialised units responsible for receiving and assisting women victims of violence within courts, police services, the Royal Gendarmerie and relevant public administrations.
Still, the text does not regulate all forms of coordinated online attacks, algorithmic amplification, mass harassment or rapid cross-platform removal. In clear terms, Morocco has provisions that can punish particular acts, but it does not yet have a unified cyberharassment statute comparable to the more detailed schemes adopted in some other jurisdictions.
Privacy offences: Articles 447-1 to 447-3
Article 447-1 of the Criminal Code punishes intentionally intercepting, recording, broadcasting or distributing private or confidential words or information without the consent of their author. It also covers intentionally photographing, recording or distributing the image of a person in a private place without consent.
The basic penalty under Article 447-1 is imprisonment from six months to three years and a fine from 2,000 to 20,000 dirhams.
Article 447-2 punishes the dissemination or distribution, by any means including computer systems, of a montage composed of a person’s words or image without consent, unless its nature is obvious. It also addresses the dissemination of false allegations or fabricated facts intended to harm a person’s private life or reputation.
Article 447-2 provides for imprisonment from one to three years and a fine from 2,000 to 20,000 dirhams.
These provisions are regularly described as Morocco’s “revenge porn law”. That expression is convenient but legally incomplete. Article 447-2 does not use the English phrase “revenge porn”, and not every case involving an intimate photograph fits that article in exactly the same manner. Depending on how an image was obtained and whether it was altered, recorded in a private place or distributed without consent, Article 447-1, Article 447-2 or both may be considered.
Article 447-3 provides aggravation where the offences under Articles 447-1 and 447-2 are committed by a spouse, former spouse, fiancé, ascendant, descendant or person exercising authority over the victim, or against a woman because of her sex or against a minor. In those circumstances, the statutory penalties are doubled.
This correction is important: it is inaccurate to state that every Article 447-2 offence carries a basic sentence of six months to three years, or that doubling applies only when the victim is a minor. The basic imprisonment range under Article 447-2 is one to three years, while Article 447-3 lists several aggravating circumstances.
Protective measures are not an automatic 24-hour civil order
Law No. 103-13 amended the Code of Criminal Procedure to permit protective measures during criminal proceedings. Under Article 82-5-1 of the Code of Criminal Procedure, the public prosecutor or investigating judge may take measures intended to protect a victim of violence, including placing her in treatment or accommodation where appropriate and prohibiting the suspect from contacting or approaching her, subject to the legal conditions.
The Criminal Code also permits no-contact and no-approach measures following conviction in specified violence and harassment cases. These mechanisms can be extremely useful when online abuse is linked to stalking or a threat of physical violence.
Attention, however: Moroccan law does not provide a universally available civil “protection order” that must automatically be issued within 24 hours for every cyberharassment complaint. Victims are sometimes given this promise online and are then surprised by the reality at the tribunal. Urgent applications may be brought before the president of the tribunal of first instance acting in summary proceedings, particularly to seek cessation of a manifestly unlawful act, but jurisdiction, urgency and the requested measure must be legally established.
A victim facing immediate danger should ask the police and public prosecutor expressly for a contact prohibition and protective measures. Where content must be removed quickly, a lawyer may assess an urgent summary application. The supporting file should include screenshots, URLs, usernames, telephone numbers, a chronology, medical certificates where relevant and evidence that the publication is continuing.
For a detailed explanation, see this resource on an ordonnance de protection Maroc. In intimate-partner cases, consulting an avocat violence conjugale Casablanca may help coordinate the criminal complaint with family-law and safety measures.
Other Criminal Code provisions used in digital-violence cases
Law No. 07-03 and unlawful access to computer systems
Law No. 07-03, promulgated by Dahir No. 1-03-197 of 11 November 2003, added Articles 607-3 to 607-11 to the Criminal Code. These provisions deal with attacks on automated data-processing systems, including fraudulent access, remaining unlawfully in a system and interference with data or system operation.
They may apply where a perpetrator enters a victim’s email, cloud storage or social-media account without authorisation. Merely receiving an insulting message is not a system-intrusion offence. Prosecutors must show the relevant unauthorised access or interference.
Morocco is also a party to the Budapest Convention on Cybercrime, which entered into force for Morocco in 2018. Statements that Morocco has not joined the Convention are therefore outdated. The Convention facilitates international cooperation, but it does not guarantee that a foreign platform will immediately identify an account or preserve every item of data.
Threats, blackmail, defamation and public insult
A threat to kill, assault or disclose compromising material may trigger additional Criminal Code provisions depending on its wording, whether it is conditional and how it was communicated. Demanding money, sexual acts or another benefit in exchange for not publishing images may support a blackmail or extortion-related charge. The often-cited Article 540 principally concerns fraud and should not be treated as a universal “sextortion article”; the prosecutor must select the provisions that match the precise coercion used.
Defamatory posts and public insults can also fall under the Moroccan Press and Publishing Code, notably Law No. 88-13, depending on the public character of the publication and the identity of the publisher. Procedural requirements and limitation periods in press cases can be short and technical. Prompt advice is essential.
Personal data and the role of the CNDP
Law No. 09-08 protects individuals in relation to the processing of personal data. A complaint may be submitted to the National Commission for the Control of Personal Data Protection, known as the CNDP, where personal data has been processed unlawfully.
The CNDP is useful, but it is not an emergency police service and does not replace a criminal complaint. It cannot always compel a foreign social-media platform to remove content within hours. Where there is a direct threat, extortion or intimate-image publication, the victim should contact law enforcement and the public prosecutor without waiting for an administrative data-protection procedure.
How to report internet harassment in Morocco
Step 1: preserve evidence before blocking the harasser
Here is the most practical advice in this article: do not block the harasser until you have preserved the evidence, unless keeping the channel open creates an immediate safety risk. Blocking first is the number-one mistake seen in practice. Usernames change, stories disappear and access to parts of a conversation may be lost.
Take full screenshots showing the account name, telephone number, date and time. Capture the profile page, URL and context, not only the most offensive sentence. Export WhatsApp conversations without altering them, preserve voice notes in their original format and back up the material on a separate device or secure storage account. Keep a written chronology of each contact.
Do not crop, annotate or edit the only copy. An edited image may still be informative, but the defence can argue that context is missing or that the file was manipulated. If possible, preserve the original device and avoid resetting it.
A commissaire de justice, commonly still called a judicial officer or huissier de justice, can draw up a formal report recording what appears on a device or webpage. This is stronger than a screenshot standing alone because an independent professional documents the content, date and method of access. It does not make the evidence impossible to challenge, but it substantially improves traceability.
Fees are not identical in every case. A straightforward digital report may cost roughly 500 to 1,500 dirhams, while a lengthy report involving many pages, videos or repeated visits may cost more. Ask for a written estimate. An adoul and a commissaire de justice perform different legal functions; victims should not assume that an adoul is the usual professional for a digital evidentiary report.
Step 2: report the account to the platform
Use the reporting tools offered by Facebook, Instagram, TikTok, WhatsApp or the relevant service. Select the most accurate category, such as harassment, threats, impersonation, non-consensual intimate imagery or sexual exploitation. Save the platform’s confirmation number and take a screenshot of the report.
Platform reporting can lead to content removal, but it does not open a Moroccan criminal investigation. Conversely, deleting content from a platform does not erase criminal liability. Preserve evidence first, then request removal.
Step 3: make an online report or lodge a formal complaint
The DGSN’s E-Blagh portal allows users to report unlawful digital content. It is particularly useful for alerting the authorities and transmitting links or account details. Nevertheless, an E-Blagh submission should not automatically be treated as equivalent to a signed criminal complaint accompanied by evidence.
A victim may lodge a complaint at a police station or Royal Gendarmerie brigade. She may also submit a written complaint directly to the Public Prosecutor at the competent tribunal of first instance. The complaint should identify the victim, describe the facts chronologically, provide known details about the perpetrator, list witnesses and attach copies of the evidence.
Ask for a receipt, report number or other proof that the complaint was submitted. If an officer dismisses the matter as “just Facebook” or “a private problem”, remain calm and request that the facts be formally recorded. A written complaint to the prosecutor can be used when the initial reception is inadequate. See déposer plainte au Maroc : guide complet for the general procedure.
Call 19 for police assistance in urban areas or 177 for the Royal Gendarmerie where there is immediate danger. Support hotlines and their operating arrangements can change; the Ministry’s “Kolona Maak” service has publicised 8350 as a national listening and orientation number. Victims should verify current availability through the Ministry of Solidarity, Social Integration and Family. A support line is not a substitute for emergency services.
Step 4: request investigation and victim status
Police judiciaire officers may collect statements, inspect devices under lawful authority and seek prosecutorial instructions. For serious or technically complex cases, local services can coordinate with specialised cybercrime structures within the DGSN or the National Brigade of Judicial Police, the BNPJ. A victim does not generally need to travel directly to Rabat before making a complaint; the local police judiciaire can initiate the file and request specialist assistance.
The victim may seek damages by constituting herself a civil party in the criminal proceedings, subject to procedural rules. Recoverable harm may include psychological injury, reputational damage, medical expenses, loss of income and other proven losses. A medical or psychological report can be useful where the harassment caused anxiety, depression or inability to work.
Limitation periods: do not rely on the five-year claim
Online articles frequently state that every digital-harassment misdemeanour has a five-year limitation period. That is not the general rule traditionally stated by Article 5 of the Moroccan Code of Criminal Procedure. Subject to special provisions and acts that interrupt or suspend limitation, the standard period is generally four years for a misdemeanour and one year for a contravention.
For repeated conduct, identifying the date from which time runs may require legal analysis. Press-law offences can also involve special, much shorter rules. Act promptly. Digital evidence often disappears long before the legal limitation period expires.
WhatsApp harassment: proving messages sent through an encrypted service
End-to-end encryption does not make a WhatsApp complaint impossible. It means that the message content is normally available on the participants’ devices rather than readable in transit by the service provider. The victim’s device therefore becomes a central source of evidence.
A screenshot can be admitted and assessed by the court, but it is not automatically conclusive. A formal report by a commissaire de justice, the original device, exported conversation files and a consistent statement strengthen the case. Moroccan criminal courts assess evidence according to the applicable rules and the judge’s conviction; authenticity and context remain open to challenge.
Investigators may ask Moroccan operators such as Maroc Telecom, Orange Maroc or inwi for subscriber information or telecommunications metadata under lawful prosecutorial or judicial authority. Operators do not necessarily possess the encrypted content of WhatsApp messages. The scope and availability of data depend on the legal request, technical records and retention period.
If a Facebook, Instagram or TikTok account is anonymous, investigators may seek preservation and identification data from the platform. Meta and other companies maintain law-enforcement request channels, but disclosure is not automatic. Foreign-law requirements, urgency, data retention and the specificity of the request all matter. An IP address is an investigative lead, not proof by itself that a particular person typed the message.
A court-listed IT expert may be appointed to examine a device, account artefacts or files. The party requesting expertise may have to advance costs, often several thousand dirhams depending on complexity. In a typical Marrakech case involving a false Facebook identity, the sound approach is to preserve the profile URL and messages, lodge a complaint quickly, request data preservation and then seek subscriber identification through lawful channels. Trying to “hack back” can expose the victim or a helper to prosecution under Articles 607-3 and following.
Non-consensual intimate images and sextortion
Criminal classification and possible penalties
Publishing an intimate photograph without consent can engage Articles 447-1 to 447-3, depending on where and how the image was captured, whether it was altered and the relationship between the parties. A victim’s consent to taking or privately sending an image is not automatically consent to publishing it. That distinction is central.
The basic sentence under Article 447-1 is six months to three years’ imprisonment and a fine of 2,000 to 20,000 dirhams. Under Article 447-2, it is one to three years and a fine of 2,000 to 20,000 dirhams. Article 447-3 doubles the penalties in its listed aggravated circumstances, including certain offences committed by a spouse or former spouse or against a minor.
Moroccan judgments are not consistently published in a searchable, anonymised national database. Media reports have described convictions by first-instance courts, including Casablanca cases involving private images distributed through Facebook or messaging services, but it would be unsafe to cite a case number or a precise six-month sentence without the authenticated judgment. Practitioners should distinguish a press report from binding, verified jurisprudence. In Morocco, a trial judgment also does not have the precedential force of a Court of Cassation ruling.
What to do in an emergency
Preserve the URL, account, date, comments and evidence of sharing. Report the image under the platform’s non-consensual intimate imagery process. File a criminal complaint and expressly request urgent preservation of electronic evidence, identification of the uploader and protective measures.
A lawyer can consider an urgent application before the president of the tribunal of first instance acting as summary judge to seek cessation or removal where the legal conditions are met. A 48- or 72-hour result is possible in some genuinely urgent files, but it is not guaranteed. Service on the platform, jurisdiction and enforceability can create delay, especially where the company is established abroad.
Never pay a sextortion demand
If a perpetrator demands money, further images, sexual contact or reconciliation in exchange for silence, do not negotiate alone and do not send more material. Payment rarely secures deletion and may encourage further demands. Preserve the demand and contact law enforcement immediately.
Where there is a credible threat to life or physical safety, leave the location if necessary, tell a trusted person and contact emergency services. A criminal complaint about an image should not obscure the physical-security risk.
Institutional and community support
Law No. 103-13 supports specialised units for women victims of violence in courts, police services, the Royal Gendarmerie and public institutions. In Casablanca, Rabat, Marrakech, Fès and other cities, victims may ask for the unit responsible for receiving women victims of violence. Availability and staffing differ by location, and opening hours should be confirmed locally.
The reality must be stated without euphemism. Some officers are well trained and respond quickly. Others, particularly where resources are limited, may not understand disappearing messages, account impersonation or the distinction between consensual creation and non-consensual publication of an image. A clear written chronology and organised evidence can reduce misunderstandings, although the burden of professional investigation remains with the authorities.
The Ministry of Solidarity, Social Integration and Family coordinates services with Entraide Nationale and partner organisations. The Anaruz network and the Moroccan Association for Combating Violence against Women have historically provided listening, orientation and legal support, subject to local capacity. The National Human Rights Council, or CNDH, can receive complaints concerning human-rights issues, but it does not replace the public prosecutor in a criminal case.
For local representation, victims may consult an avocat droit pénal Rabat, an avocat droit pénal Marrakech or an avocat droit pénal Fès. Immediate danger should always be reported to police or gendarmerie first.
When should a victim hire a lawyer?
A lawyer is particularly advisable where intimate images have been published, money or sexual acts are demanded, physical threats accompany online abuse, the perpetrator is a spouse or former spouse, the victim is a minor, or the account is anonymous and technical requests must be made quickly.
At the first meeting, bring the original device if safe, copies of screenshots, exported files, URLs, the complaint receipt, medical documents and a one-page chronology. Ask the lawyer which offences appear applicable, whether urgent proceedings are realistic, what investigative requests should be sought, how damages will be documented and which work is included in the fee.
Indicative fees in Casablanca vary considerably. An initial consultation often costs approximately 500 to 1,500 dirhams. Representation involving a complaint, follow-up, hearings and a civil-party claim may range from roughly 3,000 to 15,000 dirhams, sometimes more where there is urgent litigation, expertise, an appeal or an international platform. These figures are market indications, not an official tariff. Request a written fee agreement and ask whether taxes, travel, commissaire de justice fees and expert advances are included.
No ethical lawyer can guarantee a conviction or content removal. Be cautious when someone promises a result before reading the evidence. To find relevant counsel, consult an avocat droit du numérique Maroc or an avocat droit pénal Casablanca.
Victims without sufficient means may apply for legal aid through the competent court and bar mechanisms. Eligibility depends on resources, the nature of the case and the required documents. The court registry or local bar association can explain the current application process. This page on aide juridictionnelle Maroc provides additional orientation.
What should change after the 2026 legislative elections?
Morocco’s present framework is not empty. Articles 447-1 to 447-3 protect privacy and reputation; Articles 503-1 and 503-1-1 address sexual harassment; Articles 607-3 and following punish attacks on computer systems; and procedural provisions allow protective measures. The problem is fragmentation. Victims, police officers and even practitioners sometimes struggle to identify the correct combination of rules.
A future reform should create a clearly defined autonomous offence of repeated cyberharassment, while preserving freedom of expression and requiring proof of conduct serious enough to justify criminal punishment. Morocco also needs a rapid digital injunction procedure, clearer evidence-preservation duties, improved cross-border cooperation and mandatory training for police, prosecutors and judges.
The 2026 legislative cycle offers an opportunity to adopt a coherent approach rather than another isolated amendment. Any reform should be developed with women’s organisations, criminal-law specialists, digital-rights experts, the CNDP, prosecutors and technology companies. It should also guarantee remedies for women outside major cities, where access to specialised units remains inconsistent.
A final message to victims
If you are being harassed online, you are not responsible for the perpetrator’s conduct. Do not delete the evidence in shame. Preserve the messages, secure your accounts, tell a trusted person, report the content and lodge a formal complaint where the conduct may be criminal.
Use police emergency numbers where there is immediate danger. For orientation, verify the current availability of the Ministry’s 8350 listening service and local support centres. If the case involves intimate images, blackmail, physical threats or a former partner, seek legal advice quickly, including from an avocat violence conjugale Rabat.
Digital abuse is not “less real” because it happens through a screen. Moroccan law can respond, but the quality of the evidence and the speed of the first steps often determine whether that response is effective.
