If your kids are using your Mac for watching movies on YouTube or any other platform, parental control software is a must for you. Alternatively, you can prevent them from watching explicit contents by setting up some restrictions on Safari browser. This tutorial deals with three different methods to block websites in Safari on macOS High Sierra.
You can also block particular websites/URL access on Sierra, Yosemite, El Capitan and other operating systems on Mac. The three methods include blocking certain websites on Safari, using a parental lock, and lock through an app.
How to Block Websites in Safari on Mac in macOS High Sierra
- How to Block Websites in Safari Using Terminal
- How to Unblock Websites you Have Blocked Using Terminal
- How to Block Website/URL in Safari on Mac with Parental Controls
- How to Remove Websites You Have Blocked Using Parental Controls
- How to Block Website on Mac OS X High Sierra Through Self-Control App
How to Block Websites in Safari Using Terminal
If you use the terminal to block websites on Safari, admin of the Mac will also be blocked and won’t be able to browser the blacklisted sites.
Step #1: Launch Terminal on your Mac.
Step #2: Now, enter
sudo pico /etc/hosts in the terminal window and hit the return key.
Step #3: Next, enter the Mac Admin Password. (Jump to this post, if you have forgotten Mac Password)
Step #4: Up Next, the terminal app will open a host file. Simply scroll down to the bottom and press enter to type a new line.
Step #5: Here you need to type IP 127.0.0.1 followed by the URL of the Website for eg: 127.0.0.1 www.youtube.com and press enter key.
If you want to block multiple site address then follow step 5 once again. Make sure to use a separate line for every domain.
Step #6: Once you are done with entering the website addresses, Press Ctrl + O and then hit return key from your keyboard.
Step #7: Close the terminal window by clicking on Terminate button.
That’it. Now Open the URL in Safari browser on Mac and check whether you can open it or not.
If you can still access it then simply open terminal and flush cache by typing
sudo dscacheutil -flushcache and then hit enter.
How to Unblock Websites you Have Blocked Using Terminal
Step #1: Launch Terminal → enter
sudo pico /etc/hosts → delete the IP address and site URL you have entered → press Ctrl+O and hit the return key.
Step #2: Finally, close the terminal window.
How to Block Website/URL in Safari on Mac with Parental Controls
Using Parental Control, you can prevent guest users from watching restricted websites; however, the admin will have full access to those blacklisted sites.
Step #1. First of all, you need to create a separate User Account for your children.
Step #2: Click on Apple Logo from the menu bar.
Step #3: Then click on System Preferences from the menu.
Step #4: Click on Second tab i.e Parental Control.
Step #5: Now, click on the lock icon from the bottom.
Enter Mac Admin Password and then click on Unlock button.
Step #6: Next, choose the User account you have created.
Step #7: Up Next, Click on web tab.
Step #8: Choose Try to limit access to adult websites automatically if not selected already.
Step #9: Click on Customize button.
Step #10: Here you need to simply add websites/URLs you want to block by clicking on + button Under Never allow these websites.
Step #11: Once you are done, click on OK button.
How to Remove Websites You Have Blocked Using Parental Controls
Step #1: Click on Apple Logo → System Preferences → Parental Control → click on the lock icon → Select user account → Go to web tab → Customize.
Step #2: Select the website and Click on minus(-) button.
Step #3: At last, Click on Ok button.
Block Website on Mac OS X High Sierra Through Self-Control App
SelfControl is a free Mac app you can use to avoid distracting websites. Apart from blocking websites, this app also helps you block URL, mail servers, and other stuff. You need to decide a period of time for which you want to block specific websites; next, add those sites to a blacklist and then click on ‘Start’. Now you won’t be able to access those websites until that period gets over. You cannot open the blacklisted websites even after restarting your Mac or deleting the app.
That’s all friends!
- How to Block Websites in Safari on iPhone and iPad
- How to Block Explicit Language from Siri on iPhone and iPad
- How to Type Apple Logo on Mac
- How to Block Auto-Playing Videos in Safari on Mac
- How to Stop Websites from Tracking You in Safari on Mac
Do you find this tutorial helpful? Is there any other cool app that can prevent users from watching objectionable websites? Leave your comments in the section below or share your feedback with us on Facebook, Twitter and Google Plus.