Simple command to block distracting websites [Productivity]

pradeep_io

Pradeep Sharma

Posted on October 1, 2017

Simple command to block distracting websites [Productivity]

For Linux based systems

Step 1: Open terminal
Step 2: Open the hosts file sudo vi /etc/hosts
Step 3: Add websites you want to block and save

127.0.0.1 facebook.com
127.0.0.1 www.facebook.com
127.0.0.1 web.facebook.com
Enter fullscreen mode Exit fullscreen mode

For windows

The host file location(step 2) is> C:\Windows\System32\drivers\etc
everything else is the same

I'm tweeting similar things on twitter. Follow me and feel free to message me.

💖 💪 🙅 🚩
pradeep_io
Pradeep Sharma

Posted on October 1, 2017

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related