
Cyber Sexual Harassment Lawyer (Arts. 172 ter & 183 CP)
Criminal defense against charges of sexual harassment through digital means: social media, messaging and dating apps.
Last updated:
Cyber Sexual Harassment: Concept
Cyber sexual harassment is the set of sexual harassing, intimidating or pursuing conducts carried out through digital means: social media, instant-messaging apps, dating platforms, forums, chat rooms, gaming platforms and streaming services. Its criminal classification in Spanish law depends on the elements present and the victim's age, spread across several offences with different penalties and protected interests.
Applicable Offences
Cyber sexual harassment may engage several offences that can concur: the stalking offence (Art. 172 ter CP) where the conduct is repeated and seriously alters the victim's daily life (3 months to 2 years); grooming (Art. 183 CP) where an adult contacts a child under 16 to arrange a sexual encounter (1 to 3 years); threats (Art. 169 CP); coercion (Art. 172 CP); and the discovery and disclosure of secrets (Art. 197 CP), including the non-consented distribution of intimate images (Art. 197.7 CP).
Grooming under Article 183 CP
Grooming protects children under sixteen from online approaches for a sexual purpose. It punishes, with one to three years' imprisonment, a person who contacts a child under 16 through information and communication technologies and proposes a meeting with the purpose of committing a sexual offence, where the proposal is accompanied by material steps towards the approach. The aggravated subtype applies where there is prevalence, deception or coercion.
Evidence and Chain of Custody
Proving cyber sexual harassment raises specific technical challenges. The defense addresses material authorship (effective identification of the user behind the account; shared or impersonated accounts), the authenticity and integrity of messages and screenshots, the chain of custody of the digital evidence, the lawfulness of how it was obtained, and the completeness of the communicative context (selected messages can distort the reading).
Defense Strategy
- Repetition required by Article 172 ter CP.
- Material authorship where accounts are shared or impersonated.
- Sexual purpose of the contact in grooming cases, and reasonable mistake as to age where the profile showed an adult appearance.
- Challenge to digital evidence for lack of chain of custody or irregular obtaining.
Penalty Chart
| Type / Scenario | Criminal Penalty |
|---|---|
| Stalking | Art. 172 ter CP: 3 months to 2 years' imprisonment for repeated harassment. |
| Grooming | Art. 183 CP: 1 to 3 years where the victim is under 16. |
| Image sharing | Art. 197.7 CP: non-consented distribution of intimate images, with cumulative penalties. |
* Penalties shown are indicative. The actual penalty depends on case circumstances, applicable mitigating and aggravating factors.
Sexual Offenses and Gender Violence in Spain: Legal Defense Guide
Sexual offenses in Spain are governed by Art. 178-194 of the Criminal Code, significantly reformed by Organic Law 10/2022 (the "Only Yes Means Yes" law) and its subsequent correction by LO 4/2023. Gender violence offenses — one of Spain's most prosecuted areas — are found in Art. 153-173 CP, with special aggravated penalties when the victim is an intimate partner.
Penalty Table: Sexual Offenses (Post-2023 Reform)
| Offense | Article | Penalty |
|---|---|---|
| Sexual assault (basic) | Art. 178 | 1 – 4 years |
| Sexual assault with penetration | Art. 179 | 4 – 12 years |
| Aggravated sexual assault | Art. 180 | 7 – 15 years |
| Child sexual abuse (under 16) | Art. 183 | 2 – 15 years |
| Child pornography (holding) | Art. 189.5 | 3 months – 1 year |
| Gender violence (minor assault) | Art. 153.1 | 6 months – 1 year |
| Stalking / Harassment | Art. 172 ter | 3 months – 2 years |
Critical Defense Strategies
Consent Analysis (Only Yes Means Yes)
Post-reform, consent must be explicit and ongoing. Defense focuses on context, prior relationship history, and how withdrawal of consent was expressed.
False Allegations Defense
False accusations are frequent in custody disputes. Challenge credibility with inconsistencies between statements, phone/message evidence, and expert psychological assessment.
Digital Evidence Review
WhatsApp messages, social media interactions, and digital footprint often contradict prosecution narratives. Comprehensive digital forensics analysis is essential.
Challenging the Expertise Reports
Psychological victim assessments used in court are frequently challenged on methodological grounds. Expert counter-reports are a cornerstone of defense.
Why Choose Us?
Need a criminal defense lawyer for this type of offense? Here's how we work:
Do you need specialised legal assistance?
The judicial system is complex. We have the criminal-law specialisation and technical resources required to take on the defence.