Public safety, public order and other offences
In short
The Criminal Code (Código Penal) does not have a single chapter on cybercrime. Two types of conduct are grouped under that label:
The situations we are most often consulted about are accessing another person’s email or social media account, using data from a former employer, phishing, ransomware attacks on businesses and sharing photos or videos without permission. For threats and harassment on social media, see our page on threats and coercion.
| Conduct | Penalty | Article |
|---|---|---|
| Accessing an information system without authorisation by breaching its security measures, or remaining in it against the owner’s wishes | 6 months to 2 years in prison | 197 bis.1 |
| Intercepting non-public data transmissions | 3 months to 2 years in prison or a fine of 3 to 12 months | 197 bis.2 |
| Seizing emails, messages or documents, or intercepting communications, to discover secrets or invade privacy | 1 to 4 years in prison and a fine of 12 to 24 months | 197.1 |
| Accessing, using or modifying confidential personal data held in files | 1 to 4 years in prison and a fine of 12 to 24 months | 197.2 |
| Disclosing what was discovered in the above cases | 2 to 5 years in prison | 197.3 |
| Sharing without permission intimate images obtained with consent, where this seriously undermines privacy | 3 months to 1 year in prison or a fine of 6 to 12 months | 197.7 |
| Producing or supplying programs or passwords to commit these offences | 6 months to 2 years in prison or a fine of 3 to 18 months | 197 ter |
| Seriously deleting, damaging, altering or making inaccessible someone else’s data or programs | 6 months to 3 years in prison | 264 |
| Seriously obstructing or interrupting someone else’s computer system | 6 months to 3 years in prison | 264 bis |
| Computer fraud and fraudulent use of cards or payment data | 6 months to 3 years in prison | 249 |
Penalties increase if the acts are committed within a criminal organisation or group (article 197 quater), if they affect particularly sensitive data or minors (article 197.5), if there is a profit motive (article 197.6) or if the computer damage is particularly serious or affects essential services (article 264.2). Companies can also be convicted of these offences; we explain this on our corporate criminal compliance page.
Offences involving the discovery and disclosure of secrets, such as getting into another person’s email or mobile phone, can only be prosecuted if the injured party or their legal representative files a complaint (article 201). No such complaint is needed when the offence affects the general interest, several people, a minor or a person with a disability in need of special protection. The victim’s pardon ends the criminal proceedings, subject to the exceptions in the law.
This changes the strategy: in many disputes between former business partners, former employees or relatives, an agreement can bring the proceedings to an end.
If you have been summoned to give a statement, first read our page on being summoned as a suspect and message us on WhatsApp at 607 449 491.
In their basic forms, these offences carry maximum penalties of between one and four years in prison. If the sentence does not exceed two years and you have no relevant prior convictions, article 80 allows it to be suspended. Offences with a maximum penalty of up to five years become time-barred after five years (article 131). For the offences in paragraphs 2 and 3 of article 197 and computer damage under article 264, extended confiscation of assets of unexplained origin is also possible (article 127 bis).
The first thing to do is preserve the evidence: dated screenshots, links, emails with their headers, bank statements and any messages received. Do not delete anything, and change your passwords from a secure device. If you have been the victim of online fraud, notify your bank immediately and see our fraud page.
Then report it and consider joining the proceedings as a private prosecutor (acusación particular) to request investigative measures, such as identifying account holders or IP addresses, and to claim compensation. If the sharing of intimate images or control of your phone comes from your partner or ex-partner and you are a woman, it may amount to gender-based violence: we can help you through our section on gender violence.
Yes. Seizing another person’s messages or emails without their consent to discover their secrets or invade their privacy is punished with one to four years in prison and a fine (article 197.1 of the Criminal Code). If what was discovered is also disclosed, the penalty is two to five years. It makes no difference that you know the password: what matters is that you do not have their permission.
Accessing an information system, or part of one, without authorisation by breaching its security measures is punished with six months to two years in prison (article 197 bis). If data is also seriously deleted, altered or made inaccessible, the offence of computer damage under article 264 may be added, with six months to three years in prison.
Yes. Anyone who shares without consent intimate images they obtained with the permission of the person concerned faces three months to one year in prison or a fine (article 197.7). And anyone who receives them and forwards them to others without the consent of the person concerned also commits an offence, punishable by a fine of one to three months.
No. The Criminal Procedure Act allows third parties who know how a system works to be ordered to provide information to access it, but it expressly excludes the suspect (article 588 sexies c.5). In addition, to access the contents of a seized phone or computer, the police generally need judicial authorisation.
Call your bank to try to block the transaction, keep all the evidence without deleting anything and report it as soon as possible. Computer fraud is punished with six months to three years in prison (article 249). Joining the proceedings as a private prosecutor allows you to ask for the money to be traced and to claim its return from those responsible.
Yes, if it subjects them to harassment, intimidation or humiliation. Article 172 ter.5 of the Spanish Criminal Code punishes anyone who, without consent, uses a person’s image to post adverts or open fake social media profiles, contact pages or any public means of dissemination. The penalty is three months to one year in prison or a fine of six to twelve months, and it is applied in its upper half if the victim is a minor or has a disability.
Both are punished as fraud under article 249 of the Spanish Criminal Code, with six months to three years in prison. This includes anyone who, by means of computer manipulation, obtains an unauthorised transfer to the detriment of another, and anyone who fraudulently uses cards or other means of payment, or their data, to carry out transactions to the detriment of the holder. The circumstances of the case can increase the penalty.
Yes, when it is done with the intention of facilitating cybercrime. Articles 197 ter and 264 ter of the Spanish Criminal Code punish with six months to two years in prison or a fine of three to eighteen months anyone who, without authorisation, produces, acquires for use or provides to others programs designed to commit these offences, or passwords and access codes to other people’s systems. If the tools are for committing fraud, article 249.2 applies.
Yes. Article 264 of the Spanish Criminal Code punishes with six months to three years in prison anyone who, without authorisation and seriously, deletes, damages, alters or makes inaccessible someone else’s data, programs or electronic documents, when the result is serious. The penalty rises to two to five years and a fine if there is a criminal organisation, particularly serious damage, many systems affected or essential services harmed. If a ransom is demanded, other offences may also apply.
Yes. Article 264 bis of the Spanish Criminal Code punishes with six months to three years in prison anyone who, without authorisation and seriously, obstructs or interrupts the functioning of someone else’s computer system, for example by entering or transmitting data on a massive scale. If it significantly harms the normal activity of a company or a public authority, the penalty is imposed in its upper half and may reach the penalty one degree higher.
It may be. Using technical devices for listening, transmitting or recording without their consent, or intercepting their communications in order to violate their privacy, is punishable by one to four years in prison and a fine (art. 197.1 of the Spanish Criminal Code). If it is used to watch or follow someone persistently and it disrupts their daily life, it may also be stalking (art. 172 ter), with a higher penalty if they are your partner or ex-partner. More information on cyber-violence.
It can be. Article 197.2 of the Spanish Criminal Code punishes anyone who, without authorisation, accesses another person’s confidential personal or family data stored in computer files or media, with one to four years in prison and a fine. If it is done by the person in charge of or responsible for those files, the penalty rises to three to five years (art. 197.4). Having technical access to the system is not the same as being authorised to consult any data.
Article 189.5 of the Spanish Criminal Code punishes anyone who acquires or possesses child pornography for their own use with three months to one year in prison or a fine of six months to two years. The same penalty applies to anyone who knowingly accesses such material online. Producing, distributing or sharing it is punished with much more serious penalties in other paragraphs of the same article.
It is contacting a minor under sixteen via the internet, phone or other technology for sexual purposes. Article 183 of the Spanish Criminal Code punishes with one to three years in prison or a fine of twelve to twenty-four months anyone who proposes a meeting with them to commit a sexual offence, if there are physical acts aimed at getting closer. Tricking them into sending or showing pornographic images is punishable by six months to two years in prison.
Only with judicial authorisation. Article 588 septies a of the Spanish Criminal Procedure Act (LECrim) allows the judge to authorise the installation of software to examine a computer or device remotely, but only to investigate specific offences: criminal organisations, terrorism, offences against minors, against the Constitution or national defence, and offences committed by computer means. The decision must specify the scope and the officers authorised.
Do you need help now?
On this page
Related services
Areas we cover
We handle criminal cases throughout the province of Alicante, wherever you live and whichever court is handling your case. These are some of the towns where we work most often:
AlicanteElcheSan Vicente del RaspeigSant Joan d’AlacantEl CampelloMutxamelBenidormTorreviejaAlcoyDeniaCalpeAnd any other town in the province