Sometimes we need to block few website on Mac laptop or iMac so that cannot be accessed by users. Especially the social networking sites like facebook and twitter will be in the top list for blocking. Below guide shows how to block facebook on Mac OS including Yosemite, Mavericks and other versions using terminal. This method can be used to block any websites where you want to restrict the access. Since we will be using terminal prompt, it requires basic knowledge of using commands, but do not worry, all are simple and easy to follow.
- If you’re using a Mac that’s running macOS Catalina, go to the Apple menu and choose Lock Screen or press Command+Control+Q. This will lock your Mac and return you to the Login screen. For older versions of the operating system, press Control+Shift+Power button (or Control+Shift+Eject if your Mac has an optical drive). It will lock the screen.
- OS X is complicated and has many essential processes that shouldn't be tampered with. However, let's say that you just installed an OS X application called SPECTRE.app, decided to quit and delete.
- How to Block People on macOS. Messages isn’t just an iOS app; it’s also on macOS. Here’s how to block people there. Open Messages and go to Messages Preferences Accounts. Select the Blocked tab. To add someone, click the + icon. Use the search to find the contact you want to block.
![Block Block](https://cdn.osxdaily.com/wp-content/uploads/2014/02/block-imessage-mac.jpg)
Basically we will be modifying the DNS database which is located in hosts file like most of the Operating Systems including Microsoft Windows and Linux. Privatus online privacy protection 4 1. We will enter the wrong IP address for facebook or other website which need to be blocked on Mac. So after that the web browser will look for wrong IP to access facebook and finally fail.
The below steps were performed on a MacBook Air running macOS High Sierra (10.13). Type in '127.0.0.1 ' and then the address of the site you want to block, making sure to keep a space.
Similar altering hosts file method used in blocking facebook on Windows 8 and 8.1 here. Below method is very similar to that but we will be doing it on Mac Operating System.
To modify hosts file in Mac OS, you must be a super user or have that access. Wrong modification of host file will cause issue on DNS related network access in Mac.
To modify hosts file in Mac OS, you must be a super user or have that access. Wrong modification of host file will cause issue on DNS related network access in Mac.
Block Facebook on Mac OS by Terminal.
1) Open terminal utility. This can be found under utilities ( Go – Utilities)
2) Type the following command to open hosts file.
When prompts for password, provide super user password (if you are a super user, then your password).
3) Busycal 3 0 5. Move the cursor to last entry and enter each entry line by line as shown below.
![Macos Macos](https://i.stack.imgur.com/jmQ0T.png)
127.0.0.1 is a local host’s IP. As per above entries, we point facebook.com, www.facebook.com and m.facebook.com to local computer IP address, so the web browser or other applications which need to access facebook will not be able to access correct real IP.
To save the file press Control key with “O” and press ENTER.
Press Control key with “X” to exit.
If you like, open the file again and check for the new entries.
4) Even though we have pointed out facebook or any other websites to different fake IP, but the local Mac OS will have the DNS cache which was collected earlier. We need to clear the DNS cache (or restart the Mac computer) to take effect of new host entries.
Block Macros Office 2016 Group Policy
Enter following command to clear DNS cache in Mac OS X.
5) Now open the web browser and try to access facebook.com. I’m sure it will not work and that means we have successfully blocked facebook on Mac.
Block Macros From Internet
Surly this simple and straightforward method would be helpful on how to block facebook on Mac OS either Mavericks or Mountain Lion or even Yosemite.