How to Unblock Facebook With Ubuntu

by Daniel Hatter

One of the built-in administrative control features of Ubuntu is the ability to block websites from within the operating system. This can be useful, especially if you don't want your children to have access to certain websites. If you or someone else blocked the Facebook website on your Ubuntu computer, you always have the ability to unblock it. Use the Hosts file in Ubuntu to block and unblock websites.

1

Press "Ctrl-Alt-T" to open a Terminal window.

2

Type "gksu gedit /etc/hosts" into the Terminal window (omit the quotes) and press "Enter." The Hosts file will now open up in the Gedit program.

3

Scroll through the lines of text in the file until you find the line that contains the text "facebook.com." Delete the entire line, including the "127.0.0.1" at the beginning.

4

Open the "File" menu and click "Save" to save the file. Close the file; Facebook is now unblocked.

Tip

  • check If you want to block a website, copy any line in the Hosts file that contains the name of a website and replace the website name with the website you want to block.

Warning

  • close Information in this article applies to Ubuntu 10.04 through Ubuntu 13.04. It may vary slightly or significantly in other versions.

About the Author

Daniel Hatter began writing professionally in 2008. His writing focuses on topics in computers, Web design, software development and technology. He earned his Bachelor of Arts in media and game development and information technology at the University of Wisconsin-Whitewater.

Photo Credits

  • photo_camera PhotoObjects.net/PhotoObjects.net/Getty Images