How to Block Websites on Mac
Numerous web browsers offer plugins to enable you to remain gainful, and not open the websites you sit idle on, but rather you can make things one stride facilitate by just hindering your PC from getting to particular locales all together.
This is altering the Hosts file on your Mac are suggested, utilizing Terminal. Indeed, it looks a bit of threatening, however once you get its hang, you'll have restricted those websites over all browsers, and doing as such without depending on a plugin that may lose bolster when its designer becomes burnt out on refreshing it.
The underneath steps were performed on a MacBook Air running macOS High Sierra (10.13), yet they should work the same on all Mac from the most recent decade or somewhere in the vicinity.
1. Tap the magnifying glass in the upper right corner. On the off chance that it's not there, hit Command+Space.
2. Type "Terminal"002
3. Select Terminal.
4. You've achieved the command line, it's a touch of scaring, yet don't worry.
5. I will give you a progression of commands to type in, and each will have quotes on the front and back, which you ought to disregard.
6. Type in "sudo nano/and so on/hosts"How to Block Websites on Your Mac
7. click Return.
8. Type your device administrator password.How to Block Websites on Your Mac
9. This is the host file database, tap the down bolt to move your cursor beneath the line that says "127.0.0.1 localhost"
10. Type in "127.0.0.1 " and after that the address of the site you need to block, making sure to keep a space between the numbers and the address. For instance, "127.0.0.1 facebook.com" will block Facebook.
11. click return.
12. Type in "127.0.0.1 " took after by that address with the "www." prefix before it, for additional measure. For instance, "127.0.0.1 www.facebook.com"
13. click return.
14. click Control + O to save your change.
15. click Return.
16. click Control + X.
17. Type "sudo dscacheutil - flushcache"
18. click return.
Presently, when you open that website, in any program on that Mac, you'll get a message that says you can't access the website.