How to Unblock Facebook with Ubuntu

Ubuntu provides the built-in administrative control feature to block the websites from within the operating system. This is very useful feature when you don’t want anyone to have access to certain websites through your system. If you or someone else blocked the Facebook website on your Ubuntu computer, you always have the ability the unblock this site. You just need to use the Hosts file in Ubuntu to block or unblock any website.

Steps to block Facebook/Any other Website

1. Open the terminal window by pressing Ctrl+Alt+T
2. To install gksu type

$ sudo apt-get install gksu

3. To open a file, type

$ gksu gedit /etc/hosts

4. A file will be opened. Type “ domain(you want to block) and then save.
e.g. This website will be blocked.

Steps to Unblock Facebook/Any other Website

1. Type,

gksu gedit /etc/hosts

into the Terminal Window and press “Enter”. The Hosts file will now open up in the Gedit program.
2. Scroll through the lines of text until you find the line that contains the text “”. Delete the entire line, including the “” at the beginning.
3. Save the file and your Facebook is unblocked.


Published by


I am the one who discover myself daily through reading, writing, interacting with people and expressing my thoughts to inspire them if I would be able to bring a little change to the society through my work. I write blogs, participate in various social activities and want to be a Professional Speaker. Currently, I am pursuing my post graduation in Computer Applications from Guru Nanak Dev Engineering College, Ludhiana and I’m very much active in many technical & social communities.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s