This is a quick way to block sites that cause distraction in workspace. I find it useful to stop myself from habitually checking websites at work.

### 2. Type the following to Terminal

sudo vim /etc/hosts


### 3. Press i and you’ll be in editing mode.

At the bottom of the list, add lines in the following format:

127.0.0.1 www.facebook.com


### 5. Lastly, flush cache by typing in the terminal:

sudo dscacheutil -flushcache