top of page

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


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!

35 views0 comments

Comments


bottom of page