Lowering your gaze online: practical steps for Muslims
The Quran addresses lowering the gaze in Surah An-Nur, ayah 30 for believing men and ayah 31 for believing women. For what these verses mean and how they apply to your situation, read a trusted tafsir or ask a scholar you trust. This guide is about the practical side only: how to arrange a browser so that the effort is not undone every few minutes.
Why it is harder on a screen
In the street, you look away and the moment has passed. Online, pictures are chosen for you. Feeds, thumbnails and adverts are built to catch the eye, and an image appears before you have decided anything. So the practical work has two parts: reduce what reaches the screen, and make it easy to turn away from the rest.
Step 1: clean up search
Set Google SafeSearch to Filter at google.com/safesearch. The default for most adults is Blur, which still lists explicit results. Do the same on any other engine you use: Strict on Bing, strict on DuckDuckGo. Our guide When SafeSearch is not enough explains what this covers and what it does not.
Step 2: rebuild your feeds
A feed shows more of what you stop on. That works in both directions, and you can use it.
- Unfollow and mute without guilt. Accounts that regularly post what you are trying to avoid do not need a second chance.
- Use "Not interested". Instagram, YouTube, TikTok and X all have it on recommended posts. A few days of using it changes a feed noticeably.
- Turn on the sensitive-content settings. Restricted Mode on YouTube, "Less" under Sensitive content in the Instagram app, mature content off on Reddit, sensitive media hidden on X. The exact steps are in How to hide images on social media.
- Prefer the Following or Subscriptions tab over the recommended one. You chose those accounts; the algorithm chose the rest.
- Avoid the explore and trending pages. They are where the least filtered content appears.
Step 3: hide what still gets through
Even a tidy feed has surprises: an advert, a news photo, a thumbnail beside an unrelated video. For those, a filter that acts on the image itself helps.
Halal View is a free extension for Chrome, Edge and Firefox made for this. It keeps each photo hidden while an AI model checks it, and shows only the ones that pass. Porn, nude and suggestive photos stay hidden, on any website. The model runs on your own device: no photo is uploaded, there is no account, and nobody receives a report of what you browse. You can make it stricter in the settings, and include or leave out suggestive photos as a category.
It is a tool, not a guarantee. It checks playing videos only on sites where the browser lets extensions read the video picture, and elsewhere just the preview image, and it can miss an image or hide a harmless one. It lowers the number of things you have to look away from; the looking away remains yours.
Step 4: close the door on adult websites
For sites that exist only for explicit content, do not rely on willpower at a weak moment. Block them once, in advance. A free family DNS filter such as Cloudflare's 1.1.1.3 does it for every browser on the computer, or for the whole home when set on the router. The steps are in How to block adult websites on a computer.
Step 5: habits that support the tools
- Decide before you open the app. Opening a feed "for a minute" with no purpose is where most unwanted viewing starts. Go in for something, then leave.
- Keep screens in shared rooms where you can, and out of the bedroom late at night.
- Scroll on, immediately. When something appears, the first glance was not your choice. Staying on it is. Move on without examining it.
- Replace, do not only remove. A feed with nothing good in it gets filled again. Follow accounts that teach you something, and keep a list of what you actually want to read or watch.
- Start again after a slip. One bad evening is not a reason to give up the arrangement. Fix the gap that let it happen and continue.
For families
If you share a computer with children, set these up on their accounts as well. Safer browsing for children compares browser settings, DNS filters and extensions and says what each is good for.
Frequently asked questions
How can I lower my gaze on social media?
Reduce what the feed shows you: unfollow and mute, use "Not interested", turn on each platform's sensitive-content setting and stay on the Following tab. Then add an image filter in the browser for what still appears.
How do I avoid haram content on YouTube and Instagram?
On YouTube, turn on Restricted Mode and watch from your Subscriptions page instead of the home page. On Instagram, set Sensitive content to Less in the app's Content Preferences and avoid the Explore tab. In a desktop browser, an image filter can also hide inappropriate thumbnails and photos.
Is there an app or extension that helps with lowering the gaze?
On a computer, Halal View is a free browser extension that hides explicit and suggestive photos automatically, using AI that runs on your device. It works in Chrome, Edge and Firefox.
Does the extension see or store what I look at?
No. Photos are checked on your own computer and are never uploaded. There is no account, no analytics and no browsing history collected.