
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.
Who initiated conversation? If the police profile contacted the accused first, there may be provocation.
Who introduced the sexual component? If the police profile first made sexual propositions or sent suggestive material, there may be provocation.
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
| Offence | Article | Penalty |
|---|---|---|
| Production of child pornographic material | Art. 189.1 | 1 – 5 years |
| Distribution / dissemination | Art. 189.1.b | 1 – 5 years |
| Aggravated (victim <16, organization, notorious importance) | Art. 189.2 | 5 – 9 years |
| Facilitating minors' access to pornography | Art. 186 | 6 months – 1 year or fine |
| Simple possession (personal use) | Art. 189.5 | 3 months – 1 year or fine |
| Grooming (online contact with sexual purpose) | Art. 183 | 1 – 3 years or fine |
| Deceiving a minor into providing sexual material | Art. 183.2 | 6 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
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.
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).
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
Seizure
Device sealed on-site with photographs and chain of custody document initiated.
Forensic Cloning
Bit-by-bit copy using write blocker. SHA-256 hash generated for original and clone comparison.
Hash Comparison
File hashes compared against ICSE (Interpol) and NCMEC databases to identify known illicit material.
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?
What penalty does grooming carry?
Can police pose as a minor to catch me?
What if I believed they were of legal age?
Is it grooming if the conversation had no explicit sexual content?
Can I be accused of grooming for chatting with a minor I know?
Are screenshots valid evidence?
Can my child be the accused?
What's the difference between grooming and sexting between minors?
How does a grooming accusation affect my digital reputation?
Can grooming be cumulated with other sexual offences?
How much does a lawyer for a grooming charge cost?
Do you act throughout Spain?
Need urgent criminal defence?
Contact our specialist criminal defence lawyers. We evaluate your case confidentially.
Tools for your case
We also serve
View all locations →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.