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

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:
Post a Comment