Thursday, June 9, 2011

How To Block Websites In Ubuntu (Linux)

1) Open the Terminal app found in the Accessories folder in the "Applications" menu.



2) Type

sudo gedit /etc/hosts


in the prompt that appears

3)Terminal ask for your password , and after entering password a text editor will display



4) Add a line under the "127.0.0.1" line that reads "0.0.0.0" followed by the website you want to block.

5) Click the "Save" button, then restart your computer to make the changes take effect.

No comments: