Skip to content

· by L'équipe ZeChatroulet

Algeria, Tunisia, Morocco: criminalised homosexuality and online entrapment — how to protect yourself

Across the Maghreb, sex between men remains a crime and entrapment via apps and video chat is documented by NGOs. What the laws actually say, how the traps work, and the precautions that genuinely make a difference.

In short: In Algeria (article 338 of the penal code), Tunisia (article 230) and Morocco (article 489), same-sex relations are still punishable by prison. But in 2026, most of the risk does not come from a street patrol: it comes from a phone. Reports by Human Rights Watch, Amnesty International, ILGA World and regional collectives such as Damj (Tunisia) or Nassawiyat and Akaliyat (Morocco) have for several years documented prosecutions that begin with a fake profile, a conversation found on an unlocked phone, or a screenshot passed to the police. This guide does three things: quote the laws as they actually stand, describe the entrapment methods that have genuinely been observed, and list the precautions that make a concrete difference — without promising a safety that does not exist.

This article describes a legal framework and documented practices. It is not personalised legal advice. If you face a summons, police custody or a threat, the absolute priority is to contact a specialised organisation and a lawyer.

The laws, without guesswork

Figures and article numbers often circulate in distorted form on social media. Here is what the codes actually contain.

CountryLawPenalty provided
AlgeriaPenal code, article 3382 months to 2 years' imprisonment and a fine; harsher penalty if one of the partners is a minor (art. 338 para. 2)
AlgeriaPenal code, article 333 (public indecency)Aggravated where the act "consists of an unnatural act with a person of the same sex"
TunisiaPenal code, article 230Up to 3 years' imprisonment for "sodomy" between consenting adults
MoroccoPenal code, article 4896 months to 3 years' imprisonment and a fine for "lewd or unnatural acts" between people of the same sex

On top of this, all three countries have "catch-all" offences used in practice as fallbacks or as additional charges: public indecency, debauchery, distribution of content "contrary to public morals", and in Morocco article 490 (sex outside marriage), which also hits heterosexual couples. ILGA World, in its survey Laws on Us / State-Sponsored Homophobia, lists all three states among those criminalising consensual same-sex relations between adults — unlike, for example, Turkey, whose very different situation we cover in being gay and using video chat in Turkey in 2026.

Two clarifications are worth making, because they are a common source of confusion.

Using a video chat is not, in itself, the offence targeted. None of these articles mentions the internet. But a conversation, a message or an image can be produced as evidence of an alleged act, or serve as the basis for a charge of offending public morals. In several cases documented by Human Rights Watch in Tunisia, the main evidence was the content of a phone.

Forced anal examinations have been denounced, not eradicated. Human Rights Watch and the World Organisation Against Torture have documented their use in Tunisia; Tunisia's national medical council took a stand against the practice in 2017, and lawyers point out that a defendant can refuse it. Knowing that refusal is possible is one of the pieces of information that matters.

How the traps actually work

Regional NGOs describe fairly consistent patterns. Knowing them is the bulk of your protection.

1. The fake profile and the meet-up

A credible-looking account starts a conversation, pushes quickly towards an in-person meeting, and proposes a location of its own choosing — a flat, a room, a car. Once there, the victim is either robbed and beaten, or filmed, or handed over to the police. Moroccan and Algerian collectives have been flagging this type of ambush for years, sometimes organised by small groups. The most consistent warning sign: insistence on a private location you do not know, combined with a refusal of any live video exchange beforehand.

2. The screenshot and the blackmail

A cam-to-cam exchange is recorded — often with a second phone pointed at the screen, which defeats any detection. Then come demands for money, followed by threats to send the footage to your family, employer or the police. The mechanism is identical to the one we describe in homophobic ambushes and blackmail arising from a video chat, but the consequences are worse: in a country where the act is criminalised, filing a complaint exposes the victim to prosecution. That is precisely what makes the blackmail so effective.

3. The unlocked phone

During a stop and search, an arrest on an unrelated ground, or after a complaint from a family member, the phone gets examined. Photo galleries, installed dating apps, conversation history: everything becomes usable. Amnesty International and several Tunisian organisations have documented phone searches with no clear legal basis, and pressure to hand over a passcode.

4. Outing by a third party

A relative, an ex-partner or a neighbour passes on screenshots. The risk then comes not from a stranger but from your real-life circle, and no technical measure fully neutralises it.

Rainbow flag held above a crowd of demonstrators in front of a palace, under a blue sky

The precautions that make a difference

Let's set priorities. Some measures sharply reduce exposure; others are just security theatre.

What matters most: your face and your setting

Your face is the most costly identifier to lose, because a reverse image search or facial recognition can link it to your public accounts. Put plainly: the earlier an exchange is, the less it deserves your full face. Frame above the mouth, use front lighting that flattens the details of the room, and remove anything identifying from the shot — a street sign visible through the window, a diploma, a work uniform, a religious or cultural object that can be placed geographically. We go into this reading of the background in what your background says about you on random video chat.

On the hardware side, two cheap items are enough: an adhesive webcam cover for your laptop, which guarantees no app is filming you without your knowledge, and a privacy screen filter, useful if you live in a flatshare or with family and someone can walk behind you. A small LED panel with adjustable colour temperature also lets you light only your face and leave the room in shadow — that's a security choice as much as an aesthetic one.

Your phone: encryption, passcode, and what's visible on the home screen

Three settings do most of the work:

  • A six-digit passcode at minimum, not biometrics alone. In several countries, biometric unlocking can be obtained through simple physical coercion; a passcode requires you to speak. Disabling biometric unlocking before a sensitive trip is a practice recommended by Access Now in its digital security guides.
  • Storage encryption enabled (native on iOS, worth checking on Android) and automatic cloud backups reviewed: a synced gallery is a gallery that can be viewed from another device.
  • No telltale icons on the home screen. Recognisable dating apps, explicit folder names, notifications shown on the lock screen: these are the first things seen by anyone who picks up your phone.

For people sharing a home, a combination portable travel safe or a simple lockable case keeps a spare phone or a USB stick from lying around in a shared room. It's rudimentary, but it's the kind of detail that counts when the adversary is your immediate circle.

The network: what a VPN does, and what it doesn't

A VPN hides your IP address from the person you're talking to and from the site, and encrypts your traffic against your internet provider. It does not make you anonymous to the person watching you on video, it does not delete a screenshot, and it does not protect a reused account. Another thing to check: in some countries VPN use is regulated, and terms of service vary. We explain exactly how it works in VPN and random video chat: what your IP address really reveals.

To that, add a very effective and often overlooked measure: a dedicated email address, without your name, never used elsewhere, serving only the accounts tied to this part of your life. Most cross-referencing happens through a reused identifier, not a technical exploit.

Dating apps: structurally greater exposure

Compared with an account-free random video chat, geolocated apps expose you more: a persistent profile, stored photos, displayed distance (and therefore triangulable), message history kept on the server. After alerts from NGOs, several major apps added "discreet" modes that hide the icon and the distance in high-risk countries — a feature to switch on systematically. The comparative advantage of a video exchange with no sign-up is precisely that it leaves no profile behind; its drawback is the total absence of verification on the other side. These are two different risks, not a lesser one.

Metal beads arranged to spell out the message "No homophobia" on a black background

If the trap has already sprung

In case of blackmail

Do not pay. Every specialised organisation agrees on this point: the first payment establishes that you pay, and the demands start again. Cut off contact, but delete nothing: keep the account's usernames, the messages, the timestamps, the bank details or numbers you were given. Save all of this outside your phone — an encrypted USB stick or an external drive stored elsewhere is better than a cloud album synced with the very device that might be taken from you.

Then weigh the legal option according to your situation. If you are in France, Belgium, Italy or the Netherlands, blackmail and extortion are prosecutable offences and your sexual orientation is not at issue: the procedure for filing a complaint and preserving evidence is set out in report, block, preserve evidence. If you are in a country where the alleged act is criminalised, going to the police may expose you: the order of priorities reverses, and your first contact should be a human rights organisation, not a police station.

Who to contact

  • Tunisia: Damj (Association tunisienne pour la justice et l'égalité), Mawjoudin, and the Association tunisienne de lutte contre les MST et le sida (ATL MST/Sida) for health support.
  • Morocco: Akaliyat, Nassawiyat.
  • Regional / international: Human Rights Watch and Amnesty International (documentation and alerts), Access Now with its digital security helpline for people at risk, Front Line Defenders for activists.
  • France: SOS homophobie (helpline and support), Le Refuge for young people cut off from their families, Ardhis for asylum claims based on sexual orientation.

That last point deserves to be stated clearly: sexual orientation and gender identity are recognised grounds of persecution under the Geneva Convention, and the Court of Justice of the European Union has confirmed this (judgments X, Y and Z, 2013). Recognition rates vary widely and procedures are long, but the information exists, and both Ardhis and UNHCR publish guides on the subject.

Build a habit, not a panic reflex

Digital security depends less on tools than on routines. Three questions, asked at every exchange, cover most of the risk:

  1. What is visible on screen right now? Face, setting, objects, reflections, notifications.
  2. What links this exchange to my legal identity? A reused handle, an email address, a phone number, a photo already published elsewhere.
  3. What do I do if this is being recorded? Having the answer in advance means not caving under pressure.

To go further without relying on a connection, the digital security guides from the Electronic Frontier Foundation (Surveillance Self-Defense, translated into several languages) and Tactical Tech (Security in a Box) are freely available references; in print, a book on digital security and online privacy lets you work on these reflexes offline. It sounds mundane, but a resource that doesn't appear on a screen is also one that can't be seized from you.

Finally, if you are at the very beginning of the road — not out, not sure, not ready to talk about it with the people around you — the two articles not out yet: the discretion guide for video chat between men and bi, questioning extend this guide on the day-to-day side. The site's general safety rules are gathered on the safety page.

Criminalisation is not a technical subject: it is a legal framework that states maintain, that NGOs document, and that activists, often at great personal risk, contest. The precautions described here reduce exposure; they replace neither solidarity nor the work of those organisations.