Cisdem Learning Resource Center

How to Block Websites on Mac (macOS Sierra Included)

“Is there a method or a website blocker to block websites on mac? When I am trying to work on my Mac, something always drags me from working, like watching YouTube videos, listening to musics, etc. This is very annoy and makes me less productive. Can anybody know how to block websites on Mac? Any help will be greatly appreciated.” From an anonymous Mac user.

There will always be some distractions that prevent you from focusing on the actual task. These distractions can be constantly checking your emails, reading your Facebook feed,watching some funny YouTube videos, listening to online radio, etc. Here are some methods for you about how to block websites on mac. This article falls into four parts listed as below:

Method One: Block Websites on Mac Using Parental Controls

You can use Parental Controls in Mac OS X to help prevent user accounts from accessing to some Internet websites regardless of which Internet browser is used. This part describes how to block websites using Parental Controls step by step.

Step 1. From the Apple menu, choose System Preferences. From the View menu, choose Parental Controls.

Step 2. Select the user account on the left side of the window that you would like to enable parental controls. Then click "Enable Parental Controls". Click the Content tab to set restrictions. If there are no user accounts for you to choose, you’d better set a new one to be enabled Parental Controls by clicking “+” button.

Step 3. Choose “Web” and choose one of the three modes under Website Restrictions. See below for a description of each. Then click the lock to prevent further changes.

Note: Parental Controls cannot be enabled for administrator accounts (admin accounts will not appear in the window). Check Accounts preferences in System Preferences to see which account(s) have what level of access (Admin, Managed, and so forth).

Method Two: Block and Unblock Sites through Hosts File in Terminal

Using Terminal to blocking website on Mac is free for Mac users without buying any application. The process is relatively quick, and requires altering your Mac’s hosts file to redirect a specified domain name. This process will prevent users from seeing content you deem block-worthy across all browsers but that can be reversed should you want to grant access to the sites in the future. Follow below steps to block a website whether you use Google Chrome or other Internet browsers.

Step 1. Open up Terminal in /Applications/Utilities. Type “sudo/bin/cp/etc/hosts/etc/hosts-original”on the Terminal command line to make a backup of the file. Hit Enter and type in your administrative password when prompted.

Step 2. Next, type “sudo nano /etc/hosts” and hit Enter on the Terminal command line to open up your hosts file in a nano box. Enter your administrative password and you’ll see the host database for your computer. Using your down arrow, go to the bottom, right under where it says, "SERVER_IP_ADDRESS localhost", for example “ localhost”.

Step 3. Edit the hosts file. Type in “SERVER_IP_ADDRESS”, such as “”. On a new line, type in “SERVER_IP_ADDRESS”; this is for extra measure. Now, hold down Control + “O”. This will save the changes to the host database. Hit “Return” and then Control + “X” to exit the screen.

Step 4.Remove the existing cache by typing in "sudo dscacheutil -flushcache" in the command line, this refreshes the existing cache on the host database. You should receive an “Unable to connect” error message when you go to the website.

Note: You can also unlock these websites by repeating the steps above but removing the information entered in step 3. This method can be tedious.

Method Three: Blocking Websites on Mac With  a Mac Website Blocker

Using app will be the most convenient way to add apps and websites, no need to change the setting on Mac. For Cisdem AppCrypt, it with easy interface and overall functions, AppCrypt can block websites and app. Also it is very easy to remove the app blocked and add some websites to the blacklist and whitelist. Two main features: 

  • sKeep tracks of failed attempts to access the locked apps.
  • Set time schedule to unlock locked apps at a specified time.
  • Blocking  website on mac by adding to blacklist and whitelist.

Method Four: Prevent Access to Websites Using Internet Browser Extensions

Some Internet browsers such as Google Chrome and Mozilla Firefox allow you to download extensions for your browser in which you can manage websites. Go to your Internet search engine and enter keyword phrases such as "Chrome add-ons" or "Firefox extensions" to locate websites that feature add-ons for your particular browser. Then download the extensions and add them to your browsers.


2017-03-14 02:22:28 / Posted byRosa Reyes to OS X Follow @ Rosa

More Related Articles You May Like

  • The Indespensible Social Media Blocker to Block Social Media Distractions

    As we all know, there are many commonly used social media distractions like SnapChat, Facebook, Twitter, YouTube, Instagram and so on. It’s a fact that we are often distracted by these social media apps or websites when working or studying on Mac.This article will recommend you an all-in-one social media app blocker for Mac to block social media distractions including websites and apps on Mac to improve your productivity.

  • Two Practical Ways to Password Protect Folders on Mac That Prevent Yours Files from Being Peeped by Others

    Do you want to password protect a folder on your Mac? This article will show you two ways to password protect your folders and you can choose the best way which is suitable for you to create a password on any folders on your Mac.

  • How to Block YouTube on Mac: Four Great Methods Proven by Research

    How do I block YouTube on my Mac? How do I temporarily block YouTube channels for free or is there a way to block YouTube app on Mac? Lots of users try to block YouTube videos on Mac, but they don’t know how to.This article will introduce you how to block YouTube website, YouTube app, YouTube channels and YouTube video ads on Mac.

4 Responses

  • Darren

    I loved your post!!! exactly what I wanted. This will be useful to help my son get rid of the addiction from Internet. My son can't inadvertently click on any of these sites now.

    4 months ago REPLY
  • William

    Hello, thank you for posting this, it's been really helpful so far! I was just wondering, does anyone know of a way to block specific google searches and not google entirely?

    11 months ago REPLY
  • Susan

    There is no way to block specific google searches I think.

    11 months ago REPLY
  • Gina

    With these methods recommended in this article, I can block any websites I want to be blocked, and the app recommended to lock apps is really wonderful

    1 years ago REPLY

Leave a Reply

Get Inspired!

Sign up for Cisdem newsletters, stay informed on the latest products news, the hottest deals, and our holiday special sales.