Learn how to block unwanted, annoying and adult content websites on Mac and allow which sites you can access.
Blocking unwanted websites can...
- keep your children from visiting adult content.
- keep yourself from wasting time in visiting websites that makes you unproductive.
Create a blocklist with Mac Parental Controls
- Go to > System Preferences...> Parental Controls.
- Choose Create a new user account with Parental Controls, and then click Continue.
- Fill out the fields for the user account creation, and then click Create User.
- Select Try to limit access to adult websites, and then click Customize....
- Click the plus (+) icons so you can add websites to allow or block access.
Create a blocklist using a Host File
- Open Utilities.
- Select Terminal.
- Back up your hosts file:
- Type sudo /bin/cp /etc/hosts /etc/hosts-original in the Terminal window, and then press the RETURN key.
- Type your Administrator Password, and then press the RETURN key. The cursor will not move from its position as you type your password.
- Type the command sudo nano -e /etc/hosts in the Terminal window, and then press the RETURN key. This will open the hosts file.
- Using the arrow keys on your keypad, go to the bottom of the line. Type 127.0.0.1 and the website address you want to block.
- Once you’re done adding the website address you want to block, press Command ⌘ + O on your keyboard to save the file, and then Command ⌘ + X to close the file.
Create a blocklist with Antivirus One
Antivirus One provides the easiest way to block websites on your Mac. With just three simple steps, you can block websites easily and effectively. Here's how:
- Open Antivirus One.
- Click on the Web tab, and then click the gear icon of the Websites on black list will always be blocked. option.
- Type the website you want to block inside the field, then click Add.