Skip to content

Criminal Lawyers in Grooming

Technical defence under Art. 183 CP. Age mistake, entrapment, and forensic communication analysis

Grooming, or online solicitation of minors, is defined in art. 183 CP: contacting a child under sixteen via the internet, phone or any other technology and proposing a meeting for sexual purposes, together with material acts aimed at that encounter. The basic offence carries 1 to 3 years' imprisonment or a 12 to 24 month fine, imposed in its upper half where coercion, intimidation or deceit is involved; deceiving the minor into providing pornographic material (art. 183.2 CP) carries 6 months to 2 years' imprisonment. Many cases originate with undercover cyber agents, so the line between valid evidence and entrapment is decisive. At Alonso Sala we analyse every conversation line by line and defend clients before any court in Spain.

The Crime of Grooming: Online Sexual Contact with Minors

The offence of online grooming or "child grooming" is typified in Art. 183 CP, introduced by LO 5/2010 and reformed by LO 1/2015 to comply with the Lanzarote Convention (Council of Europe 2007) and Directive 2011/93/EU against sexual abuse and exploitation of minors. The protected legal interest is the sexual indemnity of minors in its preventive dimension: the legislator advances the protection barrier, criminalizing preparatory acts of future sexual offences before material harm is consummated. The type sanctions whoever, through internet, phone or any information and communication technology, contacts a minor under 16 and proposes a meeting to commit any of the offences in Articles 181 and 189 CP, provided the proposal is backed by material acts aimed at the approach, or performs acts aimed at deceiving the minor into providing pornographic material. The offence is complete without the meeting having to take place, but a mere proposal without acts of approach is not enough.

The commissive modalities are three main ones. The basic type (Art. 183.1 CP) sanctions contact with minor under 16 with meeting proposal for sexual purposes, with 1 to 3 years of prison or 12 to 24 months' fine. The aggravated type (Art. 183.1 in fine CP) imposes the penalty in its upper half where the approach is achieved through coercion, intimidation or deceit. The solicitation of pornographic material (Art. 183.2 CP) autonomously typifies the conduct of asking a minor to undress, send intimate images or perform sexual acts via video conference, with 6 months to 2 years' prison. The frequently used platforms are social networks (Instagram, TikTok, Snapchat), messaging applications (WhatsApp, Telegram, Discord), online games with integrated chat (Roblox, Fortnite, Minecraft) and dating applications with insufficient verification. Concurrence of several modalities or of other offences gives rise to a concurrence of offences (Arts. 73 to 77 CP).

Police investigations present decisive technical particularities. The BIT-National Police and the GDT-Civil Guard massively use undercover cyber agents (Art. 282 bis Criminal Procedure Act) creating fake minor profiles on social networks and platforms frequented by minors. The line between legitimate investigation and provoked crime (entrapment) is extremely thin and constitutes the central axis of defences. Consolidated Supreme Court case-law establishes that the undercover agent can maintain conversations to detect predisposed persons, but cannot provoke the crime that otherwise would not have been committed: if the initiative of sexual contact, introduction of sexual component or meeting proposal comes from the undercover agent itself, the entrapment doctrine applies: the offence is not punishable and the accused must be acquitted, and what was obtained through the incitement cannot be used as evidence. Judicial control of operations (Art. 282 bis.6 Criminal Procedure Act) and the digital chain of custody are critical elements.

Technical defence is built on four axes. First, the error of type on the minor's age (Art. 14.1 CP): when the alleged minor used a profile declaring adulthood, showed adult-looking photographs, accessed through age-restricted platforms (Tinder, Grindr, Bumble), or made express age declarations, the accused can allege invincible or vincible error on age, excluding intent; the indispensable requirement is that the erroneous belief was objectively reasonable. Second, the crime provoked by undercover agent: exhaustive analysis of conversation logs to identify who initiated contact, who introduced the sexual component, who insisted in the face of investigated's disinterest; when provocation is proven, the offence is not punishable and the accused must be acquitted. Third, atypicality due to insufficient sexual content: the criminal type requires concrete meeting proposal with sexual purpose or material obtainment; ambiguous conversations without direct or indirect sexual propositions may not reach the typical threshold. Fourth, the challenge of digital attribution: hacked accounts, simultaneous sessions, identity impersonation, configure possible technical defences.

In current forensic practice, grooming proceedings have multiplied exponentially due to massive minor connectivity and police campaigns with undercover agents. Organic Law 8/2021 on integral protection of childhood and Organic Law 10/2022 have reinforced the protective framework and expanded technological investigation tools. Organic Law 1/2025 on the efficiency of the Public Justice Service is a procedural and organisational statute: it does not amend the Criminal Code or its penalties. Constitutional case-law on electronic evidence and Supreme Court doctrine on provoked crime configure a demanding procedural scenario. At Alonso Sala, our criminal lawyers specialized in grooming coordinate multidisciplinary teams with forensic computer experts performing extractions from devices and social media accounts, chronological line-by-line conversation analysis, identification of initiative timestamps, evaluation of the investigated's prior criminal predisposition, and articulation of technical defences that can lead to acquittal for entrapment, acquittal due to error of type, or significant penalty mitigation.

KEY DEFENCEUndercover Agents and Entrapment

Criminal Procedure Law allows police to use undercover cyber agents posing as minors. Evidence obtained is valid EXCEPT when the agent provokes a crime that otherwise wouldn't have occurred. If the fake profile initiated sexual conversation, insisted, or provided stimuli the accused wouldn't have sought, it's entrapment: the offence is not punishable and the accused must be acquitted.

Contact Initiative

Who initiated conversation? If the police profile contacted the accused first, there may be provocation.

Sexual Instigation

Who introduced the sexual component? If the police profile first made sexual propositions or sent suggestive material, there may be provocation.

Prior Predisposition

Supreme Court considers whether accused had prior criminal predisposition. Without prior history, provocation is more defensible.

Grooming Defence Strategies

Mistake about Minor's Age

If the minor presented as adult (adult-looking photos, explicit age declaration as over 18, profile on age-restricted apps like Tinder or Grindr), the accused can allege invincible mistake of type (Art. 14.1 CP). Defence must prove circumstances making it reasonable to believe the person was of legal age.

Police-Provoked Crime

We analyse all conversation logs to determine if the undercover agent initiated contact, introduced the sexual component, and insisted when the investigated showed disinterest. If police provocation is proven, the offence is not punishable: the case must be dismissed or, at trial, the accused acquitted.

Conversation Atypicality

Art. 183 CP requires a specific meeting proposition with sexual purpose or material obtainment. If conversation was ambiguous, without direct or indirect sexual propositions, the conduct may be atypical (not constituting a crime). Each message is analysed in conversational context.

Identity Theft or Hacking

We verify if the account that sent messages was compromised (hacking, password theft, open session on someone else's device). We analyse connection metadata (IP, location, device) to determine if the accused actually sent messages or if someone impersonated their digital identity.

Why Choose Us for Grooming Defence?

Because grooming defence requires exhaustive forensic analysis of every conversation, connection, and metadata. We know that the difference between conviction and acquittal can lie in a timestamp proving initiative came from the undercover agent.

  • Line-by-line analysis of all incriminating conversations.
  • Defence in cases involving online undercover agents.
  • Forensic extractions from devices and social media accounts.
  • Defence of personal and professional reputation during proceedings.

Child Pornography in Spain: Complete Legal Defence Guide

Child pornography offences in Spain are governed by Art. 189 of the Criminal Code, with penalties ranging from 3 months (simple possession) to 9 years in prison (aggravated forms, Art. 189.2), or more with violence or intimidation (Art. 189.3). Online grooming is separately criminalized under Art. 183 CP. These crimes are investigated with specialized digital forensic tools and international cooperation through Europol, Interpol, and the ICSE database. Defence requires both deep legal knowledge and technical digital forensic expertise.

Penalty Table: Art. 189 CP & Related Offences

OffenceArticlePenalty
Production of child pornographic materialArt. 189.11 – 5 years
Distribution / disseminationArt. 189.1.b1 – 5 years
Aggravated (victim <16, organization, notorious importance)Art. 189.25 – 9 years
Facilitating minors' access to pornographyArt. 1866 months – 1 year or fine
Simple possession (personal use)Art. 189.53 months – 1 year or fine
Grooming (online contact with sexual purpose)Art. 1831 – 3 years or fine
Deceiving a minor into providing sexual materialArt. 183.26 months – 2 years

Critical Defence Strategies

Chain of Custody Challenge

If the seized device was handled without write blockers, stored without seal, or analysed without documented protocols, the entire digital evidence can be invalidated. This is the most powerful defence tool available.

Absence of Intent (Dolo)

Possession requires knowledge and will. Automatic P2P downloads, browser cache files, and malware infections can all store illicit material without user knowledge. Forensic analysis proving involuntary storage is essential.

IP ≠ Person Identification

An IP address identifies a connection, not a person. Vulnerable WiFi networks (WEP, no password, WPS enabled), shared routers, and VPN usage all prevent conclusive identification of the downloader.

Reclassification: Distribution → Possession

P2P programs share files automatically (seeding). If the user was unaware of this mechanism, distribution charges can be reclassified as simple possession, reducing the maximum penalty from 5 years to 1 year.

Key Defence Criteria

Defence argumentCache files do not prove intentional possession

Files found only in the browser cache, without being organised, renamed or deliberately stored in personal folders, may not prove the intentional possession required by Art. 189.5 CP: the prosecution must prove a voluntary act of storage.

Art. 588 sexies a LECrimSpecific judicial authorization for device search

Seizing a device during a home search does not by itself authorise access to its contents: the judicial decision must specifically justify that access, or it must be authorised afterwards (Art. 588 sexies a LECrim). Evidence obtained without that authorisation may be excluded (Art. 11.1 LOPJ).

Defence argumentP2P automatic sharing and distribution intent

Automatic seeding in P2P programs does not by itself prove the intent to distribute: if the accused was unaware of the sharing mechanism and has a low technical profile, the defence can argue for reclassification as possession.

The Digital Forensic Process

1

Seizure

Device sealed on-site with photographs and chain of custody document initiated.

2

Forensic Cloning

Bit-by-bit copy using write blocker. SHA-256 hash generated for original and clone comparison.

3

Hash Comparison

File hashes compared against ICSE (Interpol) and NCMEC databases to identify known illicit material.

4

Timeline Reconstruction

System logs, user sessions, and file metadata analysed to determine who, when, and how files arrived.

FAQ: Online Grooming

What exactly is grooming?
Grooming (Art. 183 CP) is contacting a minor under 16 via internet, phone, or any telematic means with the purpose of committing a sexual crime or obtaining pornographic material. The meeting modality is complete once the proposal is backed by material acts of approach, without the meeting having to take place.
What penalty does grooming carry?
Basic type (contact and a proposed meeting backed by material acts of approach): 1-3 years' imprisonment or a 12-24 month fine, in the upper half where the approach is achieved through coercion, intimidation or deceit; any sexual offence actually committed is punished separately. If pornographic material is obtained, it concurs with Art. 189 CP (5-9 years for a minor under 16), potentially exceeding 9 years combined.
Can police pose as a minor to catch me?
Yes. Undercover cyber agents (Art. 282 bis LECrim) may, with judicial authorisation, create fake minor profiles. Evidence obtained is valid in court if the agents confine themselves to investigating. The limit is entrapment (Art. 282 bis.5 LECrim): where the agent creates a criminal intent the accused did not have, the offence is not punishable and the accused must be acquitted. If contact initiative came from the agent, defence can allege police provocation.
What if I believed they were of legal age?
Age mistake is a key defence line. If the minor posed as an adult (adult-looking photos, false age declarations, restricted platform profiles), the accused can allege error of type (Art. 14.1 CP), excluding intent and, since this offence has no negligent form, leading to acquittal whether the error was invincible or vincible (arts. 12 and 14.1 CP).
Is it grooming if the conversation had no explicit sexual content?
The crime requires the meeting to be proposed 'for the purpose of committing any of the offences in Articles 181 and 189', or an attempt to obtain pornographic material (Art. 183.2). If conversation contains no direct or indirect sexual propositions, no material requests, nor meeting intent, it may not reach the criminal threshold. Messages and contextual interpretation are central evidence.
Can I be accused of grooming for chatting with a minor I know?
The crime requires specific subjective intent: sexual purpose. Conversations with a known minor without sexual content don't constitute grooming. However, if conversations drift toward sexual content, propositions, or intimate photo requests, the crime is established regardless of prior relationship.
Are screenshots valid evidence?
Screenshots have limited evidentiary value without certified forensic extraction. Manual screenshots can be manipulated and defence can challenge authenticity. Ideal evidence is forensic device extraction with hash certification guaranteeing conversation integrity.
Can my child be the accused?
Yes. If your child is over 14 and contacts another minor under 16 with sexual intentions, they can be investigated by the Juvenile Prosecutor. Consequences are socio-educational measures, not prison. Consensual sexting between similar-age minors is a grey area.
What's the difference between grooming and sexting between minors?
Grooming usually involves an adult contacting a minor with sexual purposes (Art. 183 CP). Sexting between similar-age minors is different: if both are minors of similar age with mutual consent, criminal prosecution is unusual. However, if a 17-year-old pressures a 13-year-old for images, it can constitute juvenile grooming or harassment.
How does a grooming accusation affect my digital reputation?
Reputational damage is devastating. Even without conviction, mere investigation can destroy professional careers, family relationships, and social life. Our firm coordinates criminal defence with digital reputation protection strategies: content removal requests, right to be forgotten, and crisis communication management.
Can grooming be cumulated with other sexual offences?
Yes. If grooming culminates in a physical meeting where sexual assault occurs, grooming enters real concurrence with the consummated sexual crime. Penalties accumulate: 1-3 years for grooming + sexual offence penalty. If pornographic material is obtained, Art. 189 CP also concurs. Accumulation can exceed 12 years imprisonment.
How much does a lawyer for a grooming charge cost?
There is no single fee: it depends on the procedural stage, the volume of conversations and devices requiring forensic analysis, whether an undercover agent was involved, and the court hearing the case. We set a fixed fee after studying the matter, so you know from the outset where you stand.
Do you act throughout Spain?
Yes. Although the firm is based in Madrid, we take on the defence before any criminal court in the country.

Need urgent criminal defence?

Contact our specialist criminal defence lawyers. We evaluate your case confidentially.

This page is for information purposes only and does not constitute legal advice: every case requires individual assessment. How this content is produced and verified: editorial policy.

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.