A macOS website blocker that runs quietly in the background, blocks distracting sites, and motivates you with quotes. Designed to be hard to disable, helping you focus deeply.
- youtube.com
- reddit.com
- facebook.com
- instagram.com
- twitter.com
Blocks sites daily from 8 AM to 10 PM (configurable in the script).
- Launches automatically via LaunchAgent
- Runs silently in the background
- Shows motivational quotes (macOS notifications)
- Logs all block/unblock actions
- Difficult to disable casually
- Fully open-source and customizable
- macOS
- Admin privileges (used only during installation)
You must run the script with
sudoto allow it to manage system files and services.
git clone https://github.com/yourusername/distraction-shield.git
cd distraction-shield
chmod +x install.sh
sudo ./install.shsudo launchctl bootout system /Library/LaunchDaemons/com.blocker.hidden.plist
sudo rm /Library/LaunchDaemons/com.blocker.hidden.plist
sudo rm /usr/local/lib/.block_web.py
sudo rm /usr/local/lib/.quotes.txtsudo nano ~/Library/Logs/webblock.log