Your Path to Digital Wellbeing
Follow our comprehensive guide to transform your Windows PC into a focused, distraction-free tool.
Important Disclaimer
While these tools can help block explicit sites, they are not perfect and may be circumvented.
Part One: Block Haram Sites
Follow these steps to block over 13,000 explicit websites on your Windows PC.
Step 1: Download the Blocklist File
Download the custom blocklist file with over 13,000 haram sites. Save it in your Downloads folder. Click here to download the file.
Step 2: Open Power Shell as an Administrator
Search for Power Shell in the Start Menu. Right click it and select Run As Administrator.
Step 3: Input the Block Script
Paste the following command and press enter:
# Run PowerShell as Administrator if (Test-Path "$env:USERPROFILE\Downloads\blocklist.txt") { # Append the blocklist to the hosts file Get-Content "$env:USERPROFILE\Downloads\blocklist.txt" | Out-File -Append -Encoding ascii C:\Windows\System32\drivers\etc\hosts # Flush the DNS cache ipconfig /flushdns # Remove the blocklist file Remove-Item "$env:USERPROFILE\Downloads\blocklist.txt" }
Step 4: Test The Blocker
Click this link to test if your blocker is working.
You should receive a black page that says something like "This site can't be reached." If instead a page loads, then go through the steps again to ensure that you did not miss steps.
Part Two: Block Distracting Sites
Follow these steps to block distracting websites like social media and streaming platforms.
Step 1: Open the Hosts File
Open Command Prompt as an administrator by searching for 'cmd' in the Start menu, right-clicking, and selecting Run as administrator. Then enter this command:
notepad C:\Windows\System32\drivers\etc\hosts
Step 2: Add Sites to Block
Add these lines at the bottom of the hosts file to block popular distracting sites:
127.0.0.1 youtube.com 127.0.0.1 www.youtube.com 127.0.0.1 tiktok.com 127.0.0.1 www.tiktok.com 127.0.0.1 instagram.com 127.0.0.1 www.instagram.com 127.0.0.1 facebook.com 127.0.0.1 www.facebook.com 127.0.0.1 x.com 127.0.0.1 www.x.com 127.0.0.1 reddit.com 127.0.0.1 www.reddit.com 127.0.0.1 netflix.com 127.0.0.1 www.netflix.com 127.0.0.1 hulu.com 127.0.0.1 www.hulu.com 127.0.0.1 primevideo.com 127.0.0.1 www.primevideo.com 127.0.0.1 disneyplus.com 127.0.0.1 www.disneyplus.com 127.0.0.1 max.com 127.0.0.1 www.max.com 127.0.0.1 twitch.tv 127.0.0.1 www.twitch.tv
Step 3: Save and Finalize
Save the hosts file and refresh your DNS cache by running this command in the administrator Command Prompt:
ipconfig /flushdns
Step 4: Test the Blocker
Try visiting a blocked site to confirm it doesn't load. You should see a message like "This site can't be reached."
If a site still loads, go through the steps again to make sure everything is correct.