How to block websites on a Mac

Author: John Stephens
Date Of Creation: 24 January 2021
Update Date: 17 May 2024
Anonim
Blocking Websites On Your Mac Using Terminal (#1573)
Video: Blocking Websites On Your Mac Using Terminal (#1573)

Content

In this article, wikiHow teaches you how to block a website on your Mac. Although there is no way to block access to certain websites on the Mac, you can adjust the host file or file that stores the server's IP information and the specified domains to block certain sites or Download the SelfControl app to block them for a preset time. You can also use the parental controls available on your Mac to block access to other accounts.

Steps

Method 1 of 3: Use the host file

  1. . Click the magnifying glass icon in the upper right corner of the screen. A search bar will appear in the middle of the screen.

  2. Terminal. It's the first result that appears under the Spotlight search bar. The Terminal application will open.
  3. , type selfcontrol, and click SelfControl right below the search bar.
  4. (Apple Menu). Click the Apple logo in the upper left corner of the screen to drop this menu.
    • This method only blocks websites on Safari.
    • Through the parental controls, you can't apply this website blocking to your own account, you can only use it for another account.

  5. Click System Preferences (System Preferences) in the drop-down menu.
  6. Press Parental Controls (Parental control). This option is located in the System Preferences window.

  7. Click the clock icon in the lower left corner of the screen.
  8. Enter your username and password. At this point, the menu will be unlocked and you will be able to make changes to the parental management settings.
    • To do this, you have to go to the administrator account.
  9. Choose the user. Click on a user's account name in the left pane to select that account.
    • You cannot choose your own account.
    • If no users are listed, select "Create a new user account with Parental Controls" and click tiếp tục (Continue).
  10. Click the card Web at the top of the window.
  11. Check the box "Try to limit access to adult websites" near the top of the window.
  12. Click Options Customize (Custom) is under the words "Try to limit access to adult websites". A new menu will appear.
  13. Click the mark + under the heading "Never allow these websites". A text box will open.
  14. Type in website address. That is the address of the page you want to block.
    • For example, to block Twitter, you would type www.twitter.com.
  15. Press ⏎ Return to enter the address. At this point, the page you just entered is blocked in the Safari browser of the selected account. advertisement

Advice

  • Some routers allow you to block websites from their configuration page.
  • If you select "Limit apps" on the card Apps (Application) of the Parental Controls menu, you can remove any other web browsers and keep Safari only from the selected account, preventing them from circumventing parental controls using another browser.

Warning

  • There are many alternatives available for the method of using the host file. You may have to block multiple versions of the same page, including its IP address.