In this video, I show you show to block facebook (or any website) on a mac or linux based operating system.
First you need to open terminal, and edit the `/etc/hosts` file with root permission `sudo`.
The text editor that I am using is vim.
`sudo vim /etc/hosts`
Then add the following lines to your terminal.
```
127.0.0.1 www.facebook.com
127.0.0.1 facebook.com
127.0.0.1 www.youtube.com
127.0.0.1 youtube.com
```
Watch video [2021] How to block Facebook or YouTube on mac without installing anything online without registration, duration hours minute second in high quality. This video was added by user AJ The Engineer 01 January 1970, don't forget to share it with your friends and acquaintances, it has been viewed on our site 218 once and liked it 4 people.