Tired of distractions while working? Want to prevent access to specific websites from your Windows machine?
I built a small utility app called SiteBlocker that lets you easily block or unblock websites using a graphical interface β and yes, it's packaged as a standalone .exe` for Windows!
π§ What It Does
SiteBlocker.exe
modifies your systemβs hosts
file to redirect unwanted domains to 127.0.0.1
. That means blocked websites won't load in any browser on your computer.
No command line, no config files β click to block or unblock.
π§ Features
- β
Block websites by entering the domain (e.g.,
facebook.com
) - β View all currently blocked websites
- β Unblock any selected website from the list
- β Clean, simple GUI (built with Tkinter)
- β
Built as a single
.exe
using PyInstaller
Download
Download executable file: https://github.com/mahmud-r-farhan/site-blocker/releases/download/v1.0.1/SiteBlocker.exe
-
Github
mahmud-r-farhan / site-blocker
A simple desktop tool to block or unblock websites on a Windows machine using a graphical interface.
π‘οΈ Website Blocker (Windows)
A simple desktop tool to block or unblock websites on a Windows machine using a graphical interface. It works by modifying the
hosts
file to redirect unwanted domains to127.0.0.1
.Built with Python + Tkinter, packaged into a
.exe
with PyInstaller.
Features
- β
Block any website (e.g.,
adult website
,youtube.com
) - β View currently blocked websites
- β Unblock websites easily
- β Simple GUI, no terminal needed
- β
Single
.exe
file with icon
How It Works
This app modifies the Windows
hosts
file:C:\Windows\System32\drivers\etc\hosts
It maps domains to
127.0.0.1
, effectively blocking them:127.0.0.1 facebook.com
Installation
-
Right-click the
.exe
and choose "Run as Administrator". - Use the buttons to:
- Block new websites
- Unblock selected websites
- View the current list
π Build It Yourself (For Developers)
Make sure Python 3.x is installed and added to PATH.
1. Install dependencies:
pip install pyinstaller
2. Prepare the
β¦ - β
Block any website (e.g.,
Follow for more
Top comments (0)