top of page

How you can get rid of distractions by building your own website blocker in 2 minutes


ree

Image by John Matychuk



I always strive to get rid of distractions. Even though I believe in the ability to improve our willpower, I always prefer to follow the rule “out of sight - out of mind”. The fewer distractions I have - the less willpower I have to use - the more time I have to do truly important things.


Initially, I was using blocksite.co, but their free service is not that great and the paid version is too expensive in my mind.


Anyway, here’s a script you can use to make your own website blocker:




Save the script as block_websites.sh

Make it executable: chmod +x block_websites.sh

Run: sudo ./block_websites.sh


Now to unblock:



Save the script as unblock_websites.sh

Make it executable: chmod +x unblock_websites.sh

Run: sudo ./unblock_websites.sh


Voila, now you can do this yourself for free!

 
 
 

Recent Posts

See All

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating

©2025 by Mykola Miroshnychenko

bottom of page