Is doxxing illegal in Spain? The short answer

Spain has no criminal offence called doxxing. Publishing someone’s personal information can still be a crime when it fits an offence the Criminal Code already contains: stalking (Article 172 ter), which expressly covers misusing a person’s personal data so that others contact them; the privacy offences of Article 197, which punish the unauthorised use of reserved personal data and raise the penalty to two to five years in prison when that data is disclosed to others; and threats (Articles 169 to 171). Outside criminal law, victims can rely on the civil protection of privacy in Organic Law 1/1982 and on data protection rights under the GDPR and Organic Law 3/2018.

This page explains how those rules apply to doxxing, what they leave out and the practical steps open to victims. It is general information, not legal advice. For the United States, see our main guide: is doxxing illegal?

The Spanish Criminal Code articles that cover doxxing

There is no single article written for doxxing, so a case has to fit one of the offences below. The articles quoted here are from the consolidated text of the Criminal Code published by the Boletín Oficial del Estado (the translations are ours and unofficial).

Misusing personal data as a form of stalking (Article 172 ter.1)

Article 172 ter.1 punishes anyone who harasses a person by insistently and repeatedly, and without legitimate authority, carrying out certain conduct that disrupts the normal course of the victim’s daily life. One of the listed forms of conduct is using the victim’s personal data improperly to buy products, take out services or make third parties contact them. Posting someone’s phone number or address with an invitation to call, write or turn up can fall within this rule when it is part of an insistent and repeated pattern.

Unauthorised use and disclosure of personal data (Article 197)

  • Article 197.2 punishes, with one to four years in prison and a fine, anyone who without authorisation seizes, uses or modifies, to the detriment of another, reserved personal or family data of another person held in computer, electronic or telematic files or media, or in any other kind of public or private file or record. The same penalty applies to anyone who accesses that data without authorisation, or alters or uses it to the detriment of the data subject or a third party.
  • Article 197.3 raises the penalty to two to five years in prison when the data or facts obtained in this way are spread, revealed or passed on to others. Someone who spreads them knowing their unlawful origin, without having taken part in obtaining them, faces one to three years and a fine.
  • Aggravations. Penalties are increased when the data reveals ideology, religion, beliefs, health or racial origin, among other sensitive data, or the victim is a minor or a person with a disability in need of special protection (Article 197.5), and when the conduct is for profit (Article 197.6).

Article 197 protects reserved data kept in files or records. Information that is genuinely public, such as a company’s registered office, is harder to bring within it, and courts look closely at how the data was obtained.

Fake profiles using a person’s image (Article 172 ter.5)

Using a person’s image without consent to place adverts or open fake profiles on social networks, contact pages or any other means of public dissemination, in a way that causes them harassment or humiliation, carries three months to one year in prison or a fine of six to twelve months, in the upper half where the victim is a minor or a person with a disability (Article 172 ter.5).

Stalking and threats in Spain

Stalking (Article 172 ter)

Stalking is punishable by three months to two years in prison or a fine of six to twenty-four months. Besides misusing personal data, the listed conduct includes watching, following or seeking physical proximity to the victim, and contacting or trying to contact them by any means of communication or through third parties. Where the victim is especially vulnerable because of age, illness or disability, the penalty is six months to two years. Stalking a spouse, former partner or certain relatives carries one to two years in prison or community service. Apart from those family cases, the offence can only be prosecuted if the victim or their legal representative files a complaint (Article 172 ter.4).

Threats (Articles 169 to 171)

Threatening someone, their family or people closely linked to them with harm amounting to one of the crimes listed in the article, which include crimes against liberty, moral integrity, privacy and honour, is punishable under Article 169: six months to two years in prison for an unconditional threat, and more where a condition is imposed. When a conditional threat is made in writing, by phone or by any means of communication, the penalty is imposed in its upper half. Minor threats can be punished with a fine (Article 171.7).

For the United States rules, see our guide to cyberstalking laws and our overview of online harassment laws.

Extra protection for police officers and authorities

Spain’s Citizen Security Law (Organic Law 4/2015) treats as a serious administrative infringement the use of images or personal or professional data of authorities or members of the security forces that could endanger the personal or family safety of the officers, protected facilities or the success of an operation, with respect for the fundamental right to information (Article 36.23). Serious infringements carry fines of €601 to €30,000 (Article 39.1). The Constitutional Court struck down the word “unauthorised” in the original wording of Article 36.23 in judgment 172/2020 of 19 November and upheld the rest only under a restrictive interpretation, so its application depends on the facts.

This is an administrative penalty, not a crime. Doxxing an officer can also be prosecuted under the Criminal Code articles above when their conditions are met.

Civil claims and data protection rights in Spain

Civil protection of privacy (Organic Law 1/1982)

Organic Law 1/1982 treats as an unlawful intrusion, among other things, the disclosure of facts about a person’s or family’s private life that affect their reputation and good name (Article 7.3), and the revelation of a person’s private data learned through the professional or official activity of whoever reveals it (Article 7.4). A court can order the intrusion to stop, measures to prevent further intrusions, and compensation, which extends to moral damage; harm is presumed once the intrusion is proven (Article 9).

Erasure and the right to be forgotten

Spain applies the GDPR, whose Article 17 gives a right to erasure in listed cases, with exceptions such as freedom of expression and information. Organic Law 3/2018 adds two specific rights:

  • Search engines (Article 93). Anyone can ask search engines to remove, from the results of a search for their name, links to information about them that is inadequate, inaccurate, irrelevant, outdated or excessive. The right applies even if the original page stays online.
  • Social networks (Article 94). Personal data that third parties posted on social networks or equivalent services must be deleted when it is inadequate, inaccurate, irrelevant, outdated or excessive, or when the person’s circumstances show their rights prevail. Data posted by individuals in purely personal or household activities is excluded.

If a request is ignored or refused, you can complain to the Spanish Data Protection Agency (AEPD) under Article 77 of the GDPR. The AEPD guide to the right to erasure explains how to make the request. Our guide to the right to be forgotten covers delisting in more detail.

What to do if you are doxxed in Spain

  1. Put safety first. If you are threatened or someone has come to your home, call 112.
  2. Preserve the evidence. Screenshot each post and message with the account name, URL and date before reporting it. For stalking, keep a record that shows the pattern over time.
  3. File a criminal complaint. Stalking and the privacy offences of Article 197 generally require a complaint (denuncia) from the victim (Articles 172 ter.4 and 201), so report the facts to the Policía Nacional, the Guardia Civil, the regional police or the duty court.
  4. Ask for protective measures. When a crime against liberty, privacy, honour or moral integrity is being investigated, the judge can order the suspect, where strictly necessary to protect the victim, not to approach or communicate with them (Criminal Procedure Act, Article 544 bis).
  5. Report the content. Use each platform’s privacy or harassment reporting form, and ask Google to remove results that show your contact details alongside threats or calls to harass (Google Search Help).
  6. Use your data protection rights. Send erasure requests under Article 17 of the GDPR and Articles 93 and 94 of Organic Law 3/2018, and complain to the AEPD if they are refused.
  7. Talk to a lawyer about the criminal complaint and a civil claim under Organic Law 1/1982.

Doxxing in other countries works differently. Compare Portugal, Italy and France.

How Media Removal can help after doxxing in Spain

Media Removal is not a law firm and does not give legal advice. Criminal complaints, court orders and lawsuits belong to the police, prosecutors, courts and your lawyer. We work alongside them on the practical side: finding where your information has spread and getting it taken down through the right channel for each site.

  • Mapping the exposure. We identify the posts, profiles, directory listings and search results that show your private information or that of your executives and staff.
  • Removal at the source. We use each platform’s own privacy and harassment rules and, where the GDPR applies, erasure requests to the site or service that holds the data and, where your lawyer pursues them, legal channels. Whether a page comes down is decided by the platform, the site owner, the regulator or a court, so we do not promise any particular outcome.
  • Search results. We submit delisting requests to Google where its policies and the law allow and work to push down what cannot be removed.
  • Crisis support. When doxxing comes with a viral thread or false claims about a company or public figure, our reputation crisis management team responds the same day.

If the doxxing comes with false statements about you or your company, separate rules apply. See defamation and harassment laws in Spain and how to sue for defamation.

For content removal, you are billed only when the URL is verified offline. Every client signs an NDA, and so do we. We answer within one business day. To discuss your situation, request a quote or read more about our content removal services.

Frequently asked questions

Is there a specific doxxing crime in the Spanish Criminal Code?

No. The Criminal Code has no offence called doxxing. Depending on the facts, it can be prosecuted as stalking under Article 172 ter, which covers misusing someone’s personal data so that others contact them, as unauthorised use or disclosure of reserved personal data under Article 197, or as threats under Articles 169 to 171.

What is the penalty in Spain for spreading someone’s private data?

Under Article 197.3 of the Criminal Code, spreading, revealing or passing on reserved personal data obtained without authorisation is punishable by two to five years in prison. Someone who spreads it knowing it was obtained unlawfully, without taking part in obtaining it, faces one to three years and a fine.

Is it stalking in Spain if someone posts my phone number so strangers call me?

It can be. Article 172 ter.1 lists, as a form of stalking, using a person’s personal data improperly to make third parties contact them. It must be done insistently and repeatedly, without legitimate authority, and disrupt the victim’s daily life. The penalty is three months to two years in prison or a fine.

Can I make Google remove results with my personal data in Spain?

You can ask. Article 93 of Organic Law 3/2018 gives a right to have search engines remove links found by searching your name when the information is inadequate, inaccurate, irrelevant, outdated or excessive, even if the page itself stays online. If Google refuses, you can complain to the AEPD.

Does a doxxing victim in Spain have to file the complaint personally?

In most cases, yes. Stalking (Article 172 ter.4) and the privacy offences of Article 197 (Article 201) require a complaint from the victim or their legal representative, except in specific situations such as stalking within the family, offences against minors or cases affecting many people or the general interest.

How to cite this resource

Use this reference when citing this page.

Media Removal. (November 5, 2026). Is Doxxing Illegal in Spain? Doxxing Laws in Spain. https://mediaremoval.com/is-doxxing-illegal/spain/