How to unblock blocked websites | In Google chrome

How to Block and Unblock Internet Sites (On a Mac)

Three Methods:

Blocking certain websites can keep you productive during the workday, or minimize the chance of your child finding adult content. You can create a website "blacklist" for your Mac in several ways. While the built-in Parental Control options are the easiest to use, you will need to use the hosts file instead if you want to block sites on an administrator account.


Enabling Parental Controls

  1. Open System Preferences.Click the apple icon in the top menu and select System Preferences. You can also find this in your Applications folder, and typically on your Dock.
  2. Select Parental Controls.On most versions of OS X this is a clearly labeled yellow icon. If you do not see it, type "Parental Controls" into the search bar in the top right corner of the System Preferences window. This will highlight the correct icon.
  3. Select the child's account.On the left hand pane, click on the user account for whom you want to block or unblock websites, then click "Enable Parental Controls." This cannot be an administrator account.
    • If your child does not have an account, select the option "create a new account with parental controls" and follow the onscreen prompts.
    • If you cannot select the user, click the lock icon in the corner of the window and enter an administrator password.
  4. Open the Web tab.This is located near the top of the window. Some older versions of Mac OS X have a "Content" tab instead.
  5. Browse through the options to block websites.There are two different ways to manage your child's access to the internet:
    • Choosing "Try to limit access to adult websites automatically" will block adult websites using Apple's default list. You may add or remove websites to this list with theCustomizebutton.
    • "Allow access to only these websites" blocks all sites not specifically listed below this option. Add and remove sites using the and buttons.
  6. Consider additional restrictions.To block access to adult content through apps, click the App tab and adjust settings as desired. To limit access to the computer to certain hours, visit the Time Limits tab.
  7. Unblock websites.To unblock all websites, select "Allow unrestricted access to websites." This will not disable parental control settings in other tabs (such as Apps and People).

Blocking Sites with the Hosts File

  1. Open the Terminal application.Open Applications, then Utilities, then Terminal. This application allows you to modify your hosts file, which provides IP addresses for certain URLs. By associating a false IP address with a certain URL, you can prevent your browsers from reaching it.
    • This method does not have a 100% success rate, and is not too difficult to bypass. It's a quick way to block a website on your personal computer, for productivity reasons. While not recommended as theonlyway to block other users' access, you can try it alongside another method for greater effect.
  2. Back up your hosts file.If you make a mistake while editing the hosts file, you could block all access to the internet. Creating a backup copy allows you to return to the original version if this happens. This is as simple as a single command:
    • In Terminal, typesudo /bin/cp /etc/hosts /etc/hosts-originalexactly as it appears.
    • PressEnteron your keyboard to execute the command.
  3. Enter an administrator password.Terminal should prompt you for your password. Type it in and pressEnter. The cursor will not move from its position as you type your password.
  4. Open the hosts file.Enter the following command, then pressEnter:sudo /Applications/ /etc/hosts. This command will open your Mac's hosts file in TextEdit mode within Terminal.
    • Alternatively, you can edit the hosts file in the main Terminal window using the commandsudo nano -e /etc/hosts.
  5. Skip past the existing text.Your hosts file should already have several IP addresses linked to "localhosts." Never edit or delete this text, or your web browsers may stop working. Place your cursor on a new line at the bottom of the document.
    • If you are using the main Terminal window, use the arrow keys to reach the bottom of the page.
    • A few users have reported a bug where adding new text to the hosts file only works if you add themabovethe existing text.
  6. Type is the local IP address. If a web browser is directed to this address, it will fail to reach the web page.
  7. Hit the space bar, then type the URL you would like to block.Do not include "." For example, if you want to block access to Facebook, the line should read ""
    • The hosts file only checks for theexactURL you enter. For example, "" will only block the Google home page. You will still be able to access,, and so on.
    • Do not copy-paste from another document. This can introduce invisible characters that prevent the text from working.
  8. Add more URLs on new lines.PressEnterand begin a new line with127.0.0.1. Follow it with another URL you want to block. You may block any number of websites, but you must start each new line with
    • In theory you can include multiple URLs on one line (entering the IP address only once), up to a maximum of 255 characters.However, this may not work on all versions of Mac OS X.
  9. Close and save the hosts file.Close or quit the TextEdit dialog box when you are done, then confirm that you want to save the TextEdit file when prompted. (In some cases the file may save automatically.)
    • If editing in the main Terminal window, press + to save, then + to close the file.
  10. Flush the cache.Type the commanddscacheutil -flushcacheinto Terminal and pressEnter. This will clear the cache so your browser is sure to check the updated hosts file immediately. The websites you listed should now be blocked on all browsers.
    • You may restart your computer instead to get the same effect. In many cases, the sites will be blocked even without this step.
  11. Troubleshoot.If you can still access one of the websites, your browser may be accessing a different subdomain, accessing the site via IPv6, or bypassing your hosts file for that site. You can solve the first two problems by adding more lines to your hosts file:
    • (URL) without the "www"
    • m.(URL) will usually block the mobile version of the site
    • login.(URL)orapps.(URL) are a couple common variations of home pages. Visit the website and check your address bar for the exact variation.
    • fe80::1%lo0 (URL) blocks IPv6 access to the site. Most sites do not automatically connect you via IPv6, but Facebook is a notable exception.
    • If none of these variations work, there is probably no hosts file workaround. Try one of the other block methods on this page.
  12. Remove the entry to unblock the website.Open your hosts file again and delete the entry for the URL you would like to unblock. Save, quit, and flush the cache as described above to push through the change.
    • To undo all changes and restore from your backup, entersudo nano /etc/hosts-originalin Terminal. Press +, delete the "-original" in the name, and confirm the save.

Using Other Methods

  1. Install a browser extension.Chrome, Firefox, and most other modern browsers allow you to install user-made extensions (or "add-ons") to adjust browser behavior. Search your browser's extension store for "block websites," "filter websites," or "productivity" to find apps that block websites. Install the app, restart your browser, then open the app settings and add the sites you would like to block.
    • Be careful of apps with low ratings, or too few reviews to judge accurately. Untrustworthy extensions may install malware to your computer.
    • This will only block websites on that browser.
  2. Adjust your router settings.Blocking sites on your router will prevent any device using the wireless network from accessing those sites. Here's how to set this up:
    • Go to System Preferences → Network → WiFi → Advanced → TCP/IP tab.
    • Copy the IP address listed after "Router" and paste it into your browser's address bar. This should take you to your router settings.
    • Enter the username and password to log in to your router. If you have never set these, look up the default password for that router model. (User "admin" and password "password" are common defaults.)
    • Browse the router settings for site blocking options. Each router brand has a different set of options, but most allow you to block sites in an "Access" or "Content" menu.

Community Q&A

  • Question
    How do I use Parental Control without needing access to an Administrator account?
    Community Answer
    This can't be done. An Administrator account is required to change Parental Control settings.
  • Question
    Do parental controls apply to other browsers, such as Chrome?
    wikiHow Contributor
    Community Answer
    It depends on the type of parental controls that are used, but typically if parental controls have been set, they will apply to any browser you are trying to use.
  • Question
    How do I unblock a website on my computer?
    wikiHow Contributor
    Community Answer
    Go to parental controls, then click on the account you want to manage. It should be there.
Unanswered Questions
  • I am using my MacBook as a hotspot by sharing from LAN to WiFi. I would like every device to only be able to access sites I allowed them and nothing else. How can I set this up?
  • How do you block a site with safari?
  • I tried the host one, but you need an administrator account, because I don't have that one, do you think using less /etc/host would work?
  • Is there any way to do this without a password?
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.


Related wikiHows

Sources and Citations

Article Info


In other languages:

Español: , Italiano: , Português: , Русский: , Deutsch: , Nederlands: , Français: , Bahasa Indonesia: , العربية: , ไทย: , Tiếng Việt: 

Thanks to all authors for creating a page that has been read 657,096 times.

Video: How To Block and Unblock Websites Internet Explorer

How to Block and Unblock Internet Sites (On a Mac)
How to Block and Unblock Internet Sites (On a Mac) images

2019 year
2019 year - How to Block and Unblock Internet Sites (On a Mac) pictures

How to Block and Unblock Internet Sites (On a Mac) forecasting
How to Block and Unblock Internet Sites (On a Mac) forecasting photo

How to Block and Unblock Internet Sites (On a Mac) pics
How to Block and Unblock Internet Sites (On a Mac) pics

How to Block and Unblock Internet Sites (On a Mac) How to Block and Unblock Internet Sites (On a Mac) new images
How to Block and Unblock Internet Sites (On a Mac) new photo

picture How to Block and Unblock Internet Sites (On a Mac)
foto How to Block and Unblock Internet Sites (On a Mac)

Watch How to Block and Unblock Internet Sites (On a Mac) video
Watch How to Block and Unblock Internet Sites (On a Mac) video

Forum on this topic: How to Block and Unblock Internet Sites , how-to-block-and-unblock-internet-sites/
Communication on this topic: How to Block and Unblock Internet Sites , how-to-block-and-unblock-internet-sites/ , how-to-block-and-unblock-internet-sites/

Related News

Why The Dementia Tax’ Could Cost YOU 500k
How to Get Rid of Pregnancy Acne—The Easiest (and Safest)Way
Vetements Couture To Take Paris Couture Week By Storm
Joe Rogan: Critics of Conor McGregors recent loss are out of their minds
The Golden Globes 2019’s Cutest Coolest Couples
The purse that could stop you spending
A hand-picked selection from a James Beard award-winning chef
Tea Tree Oil Is the Best Acne Spot Treatment for Sensitive Skin
How to Upload a Website
A Replica of Kate Middleton Wedding Dress Is Selling at HM for 299
This Teen Photoshopped Ryan Reynolds Into Her Prom Photos After a Big Break Up
How to Test if a Plant Is Edible
How to Identify Genuine Caterpillar Boots
11 Straw Bags You Can (and Should) Carry Everywhere thisSummer

Date: 10.12.2018, 13:46 / Views: 73552