[2 Ways] How to Enable Website Restriction on Mac: Guest or Child account [System Preferences & Terminal]

Block Website on Mac Safari Using System Preferences and Host file

Learn, How to block Websites on Safari Mac. Prohibition or disable some websites URLs that should not be open in your guest or child account on same MacOS but can open only in admin account. Apple gives more restriction rules in OS X. Though this way you can set all the websites list that should be open as a guest or child login called parental control managed by an administrator. Might be list is too long in this case you can add lists of a website that should be only open in the browser. here I gave the complete guide on the turn/enable website restriction on OS X and possible alternate solution about that.

Parental restrictions on safari browser, So not all website can access from guest login.

we are happy to help you, submit this Form, if your solution is not covered in this article.

Note: Before that, you have to apply restriction on new apps installed on the guest account. Otherwise, third-party software or alternate browser might be crack your restriction settings within an account.

This setting is applicable on Mac, MacBook, MacBook Pro, MacBook Air, iMac, and MacMini all version.

Useful: Best Mac Data Recovery Software for lost Data.

[2 Methods] How to Apply/ Enable Website Restriction on MacOS On Your Guest or Child Login or Using Terminal

By default option on web internet URL, allowed all web address that you want to search in the browser.

But you have to change/ update through below steps given,

  • Step 1: First you have the guest user account or Child account if you don’t have to create on from User account under the System preference > Users and Groups. you have already guest account jump for next step.

Create new guest account on same Mac

  • Unlock with login for add new account.

Enter correct details related to account

  • Enter new login details.,

Enter details for access login

  • Step 2: Go to the Apple menu from top > System preference > Parental Control.Apple restriction on new account here for Websites
  • Step 3: Unlock for Change Settings, Click on the name of the guest account from the right pane,
  • Step 4: From the top tab option click on “Web” option.

enable website restriction on OS X Yosemite for Guest account

  • Step 5: Choose the third option: Allow only to these websites.
  • To add more click on “+” or remove click on “-“.
  • Now login your guest account and Open Safari browser, Type another web address then not be added to the list as a restricted website.

here, Ex. facebook.comCheck website access on user or Guest login

Note: the Second option allows an option for block website URL and Allow websites URL in the list. Best suitable option for enable website restriction on OS X is also available.

How to how to Block Websites on Mac Terminal

Blocking sites using a terminal is common practice that helpful or the mac users who can’t access Above settings under the Mac System Preferences. Follow the below steps carefully, Now You have been blocked websites using Host File on Mac, To unlock the blocked Website follow the second part of this solution. First, call the Host file and Remove Blocked Website data. and Save Host file.

  1. Open Terminal on Mac using Spotlight Search or From the Launchpad.
  2. Type this command: sudo nano /etc/hosts
    And hit the Return to run, Now Enter your Mac admin password to get a result.
  3. in a Result, you will get the host file database, file like is IP address with localhost. like 127.0.0.1 Localhost
  4. Copy this your localhost IP address, Move Cursor Down using Down Arrow button, and type a domain name in place of localhost name, I want to block facebook.com
  5. So I run, 127.0.0.1 facebook.com also Run, [Add Spaces between IP address and Domain name, So See image] 
    127.0.0.1 www.facebook.com

    Block Website on Mac Using Terminal
    Block Website on Mac Using Terminal
  6. Now, Control + O to save the changes. Click Return.
  7. Click Control + X.
  8. Type “sudo dscacheutil -flushcache” to Flush internet cache and get the effect on your Mac instantly.

    Block Website on Mac Safari Using System Preferences and Host file
    Block Website on Mac Safari Using System Preferences and Host file

Part 2: Remove Blocked Website Using Terminal on Mac

Here is my Example I blocked Safari on Mac, Now I am removing Facebook URL from Host file to allow use on Safari Browser.

  1. Open Terminal on Mac using Spotlight Search or From the Launchpad.
  2. Type this command: sudo nano /etc/hosts, Hit Return to run Command and Enter Mac Admin Password.
  3. Use Arrow down Key from keyboard to Remove the full line from host file, keep Arrow on a line only that you want to remove, After that Press Control + K key to cut the text line.
  4. Now, Control + O to Save Changes and Click Return to run.

    Remove or Unlock Website On Mac Using Terminal
    Remove or Unlock Website On Mac Using Terminal
  5. Click Control + X.
  6. Type “sudo dscacheutil -flushcache” to Flush internet cache and get the effect on your Mac instantly. Now use facebook.com on safari as usual.

    After Unblock Website on Safari Mac
    After Unblock Website on Safari Mac

The power setting without any third party software and application user can Block, restrict on URL for particular account very well through enable website restriction on macOS Parental control features.

Premium Support is Free Now

We are happy to help you! Follow the next Step if Your Solution is not in this article, Submit this form without Sign Up, We will revert back to you via Personal Mail. In Form, Please Use the Description field to Mention our reference Webpage URL which you visited and Describe your problem in detail if possible. We covered your iPhone 11 Pro, iPhone 11 Pro Max, iPhone 11, iPhone 8(Plus), iPhone 7(Plus), iPhone 6S(Plus), iPhone 6(Plus), iPhone SE, iPhone 5S, iPhone 5, iPad All Generation, iPad Pro All Models, MacOS Catalina or Earlier MacOS for iMac, Mac Mini, MacBook Pro, WatchOS 6 & Earlier on Apple Watch 5/4/3/2/1, Apple TV. You can also mention iOS/iPadOS/MacOS.
  • Is this article useful?
  • yesno

Leave a Reply

Your email address will not be published. Required fields are marked *