Free Information Technology Magazines and eBooks

Thursday, January 07, 2010

How to Block Particular Website In Ubuntu Linux

I already discussed here how to block unwanted website in windows, on this article I will show you how to do the same thing in Ubuntu Linux. Website restriction is helpful to prevent some users specially your kids from accessing provocative, gambling, and other unwanted sites. With Ubuntu, blocking websites is relatively easy and doesn't require third-party software, you just need to make a simple entry in the /etc/hosts file.

To block some site on your Ubuntu machine, follow these easy steps:
1. Open the Terminal and type the following command.
gedit /etc/hosts
2. On the gEdit application, add the following line on the /etc/hosts document.
127.0.0.1 domain-you-want-to-block.com
Where domain-you-want-to-block.com is the name of the domain that you wish to block

How to Block Particular Website In Ubuntu Linux

Now everytime a user attempts to open a blocked website, the browser will display the "Failed To Connect" message.

For More Ubuntu Tips & Tricks, subscribe now.

0 comments: