Guidance

How to quit pornography: a practical Islamic starting point

You already know it is wrong. What you need is a plan for the next time it is 1 a.m., you are alone, and the phone is in your hand.

Start with one change you can actually keep: make the first click harder. Move the phone out of your bedroom tonight, or install a blocker on your router before you sleep. That single act of friction will do more in a week than a year of promising yourself you will be stronger.

Two problems wearing one coat

Pornography is a sin, and it is also a habit loop. Treating it only as a sin produces guilt and no plan. Treating it only as a habit produces a plan with no reason to keep going beyond Tuesday. You need both.

The sin is answered by Tawbah, stop, regret, resolve, and remove the route back. The habit is answered by friction, replacement and honesty about triggers. Neither replaces the other.

1. Name the goal precisely

“Be better” is not a goal. “No pornography at all, and no scrolling in bed after 11 p.m.” is a goal. Write down the one sentence you want to be true in ninety days, not for anyone else, and not for a scoreboard.

If your goal is abstinence for religious reasons, say that to yourself plainly. You are not doing this because a website told you to; you are doing it because you want to stand in front of Allah with a cleaner heart.

2. Make access expensive

Willpower loses to convenience almost every time. So change convenience.

  • Phone out of the bedroom. Charge it in another room. Buy a cheap alarm clock. This is the single highest-impact change most people can make.
  • Use a DNS-level filter on your phone and router (for example a family-safe DNS), not just a browser extension. Extensions are bypassed in seconds; network-level filters survive weak moments.
  • Delete the apps that feed it. Not just the obvious one, the ones where you "accidentally" end up: a second browser, a spare social account, a notes app with saved links.
  • Log out everywhere. Remove saved passwords for sites you should not revisit.
  • Change the room. If you always slip in one place, that place is now furniture with a warning label. Study somewhere else.

3. Learn your triggers honestly

Most relapses are not sudden. They follow a route: boredom, loneliness, a late night, a fight, a scroll that drifts, a half-decision. Write down the last five times and look for the pattern. It is usually boring and predictable, which is good news, predictable things can be planned for.

A useful check: before the urge, were you hungry, angry, lonely or tired? Those four states account for a surprising share of “out of nowhere” slips. Fix the state and the urge often loses its grip.

4. Have a script for the urge

Decide now what you will do, so you are not deciding while your judgement is compromised. A simple sequence that works:

  1. Stand up. Physically change position.
  2. Leave the room the device is in. Take nothing with you.
  3. Make wudu with cold water. It interrupts the body and the ritual.
  4. Set a ten-minute timer. You are not promising to resist forever, only for ten minutes.
  5. Do something with your hands: walk, pray two rak‘ah, call someone, make tea.

The urge is a wave, not a command. It rises, peaks and falls. Most people have never watched one fall, because they always gave in at the peak. Watch it once, and you learn something that no article can teach you.

A longer version of this script is here →

5. Build the day around Salah, not around shame

The Qur’an connects prayer with restraint:

إِنَّ الصَّلَاةَ تَنْهَىٰ عَنِ الْفَحْشَاءِ وَالْمُنكَرِ

“Indeed, prayer prohibits immorality and wrongdoing.”
Qur’an 29:45 · read in context

Do not turn that verse into a weapon against yourself. It is a description of what prayer does over time, not a test you failed if you slipped. The point is structure: five fixed points in the day, each one an opportunity to reset.

If your Salah is currently inconsistent, fix that first. A person praying five times a day is a person who has already interrupted the day five times. That is the opposite of the long, unbroken, unaccounted evening where habits live.

6. Guard the eyes, not just the tabs

The Qur’an tells believing men and women to lower their gaze and guard their chastity (Qur’an 24:30–31). In a feed-driven world, “lowering the gaze” is a design problem as much as a willpower problem. Unfollow accounts that make the sin easy. Turn off autoplay. Stop scrolling in bed. The algorithm is not neutral.

7. Tell one safe person, if you can

Secret habits grow in the dark. You do not need to announce your history to your family or your masjid. One trusted friend, a mentor, or a counsellor is enough, someone who will ask how you are doing without needing the details.

If there is nobody you trust, that is a real obstacle, and it is worth addressing slowly. In the meantime, the accountability can be structural rather than personal: a blocker managed by someone else, a shared study schedule, a class you attend.

After a setback

A slip is information, not identity. Read what to do after a setback, it covers the first hour, the tawbah, and how to adjust the plan instead of abandoning it.

Do not replace one compulsion with another. Endless self-monitoring, streak apps and doom-scrolling about “porn addiction” can become their own loop. Your goal is a quieter life, not a full-time job managing a problem.

When to get professional help

Consider speaking to a qualified therapist or doctor if any of these are true:

  • You have repeatedly tried to stop and cannot, despite real consequences.
  • The behaviour is affecting your work, studies, marriage or health.
  • You feel unable to stop and experience significant distress or shame.
  • You are using it to cope with depression, anxiety or trauma.

This is not a failure of faith. It is the same logic as seeing a doctor for a physical illness while still making du’a. A licensed therapist or doctor is the right starting point. If cost is a barrier, university training clinics and public hospital departments in many countries offer reduced-fee services.

Common questions

Does quitting get easier?

The urgency usually fades over weeks, but the trigger can stay for a long time. Most people describe it as becoming quieter rather than disappearing, which is why the practical setup matters more than motivation.

Is a blocker enough?

No. A blocker buys you time; it does not change what you want. Use it to create the gap in which you build something else.

What if I have watched it for years?

Length of habit affects how much support you may need, not whether returning is possible. The door of tawbah does not close because a number is large.

Can I do this without telling anyone?

Many people do, at least at first. But secrecy is the habit’s best friend. If you can find one safe person, take that step.

Sources and review: Every Qur’an reference is checked against quran.com and every hadith against sunnah.com before publication. Where scholars differ, we say so rather than presenting one view as consensus. Found a mistake? Please tell us, corrections are published, not hidden.

Free for life. No catch.

Inabah exists so that cost, shame and visibility are never the reason someone stays stuck. Install it, use as much or as little as you need.