How to Unblock Sites Using the Terminal Mac OS X Application for MacBook

Written by chris hoffman Google
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Unblock Sites Using the Terminal Mac OS X Application for MacBook
Mac computers include standard UNIX terminal commands. (Justin Sullivan/Getty Images News/Getty Images)

The terminal application included with Mac OS X can be used to block websites by editing the hosts file. By pointing a website address to an address that doesn't exist, the website becomes inaccessible. You can unblock websites that have been blocked this way by editing your hosts file. Unblocking websites by editing your hosts file only works if the websites were blocked in this manner. Some routers, networks and Wi-Fi hotspots block certain websites. There's no way to get around these blocks except by connecting to a different network on your MacBook.

Skill level:

Other People Are Reading


  1. 1

    Click the "Finder" icon on the dock at the bottom of the screen.

  2. 2

    Click "Applications" at the left side of the Finder window, double-click the "Utilities" folder and double-click "Terminal."

  3. 3

    Type "sudo nano /private/etc./hosts" into the terminal window and press "Enter" to open the hosts file in a terminal text editor.

  4. 4

    Use the arrow keys to locate the line referring to the blocked website in the text editor.

  5. 5

    Position the text cursor at the beginning of the line.

  6. 6

    Type a "#" character to comment out the line. The system ignores any lines in configuration files that begin with the "#" character.

  7. 7

    Press "Ctrl+O" and then press "Enter" to save the file.

  8. 8

    Press "Ctrl+X" to close Nano, then close the terminal window.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.