Leaderboard1

Leaderboard2

Saturday, January 1, 2011

How To Block Websites in Ubuntu Linux

  1. If u r using linux & u ur computer may be connected to the internet. Sometimes its required to block some websites, may be apply parental controls on childern activities or some other reasons,etc.

Here r some steps which doesn't need amy third party applications. You just need to make a simple entry in etc/hosts file. etc/hosts is very important file which handles DNS & internet handling on linux based systems.

Steps to do this:
  1. Open the terminal.
  2. U r in the home/user directory. Go to the home directory & type
cd etc
sudo gedit hosts
[password]: ur password

3. Now put these lines into the file:
127.0.0.1 domain name

For example: 127.0.0.1 facebook.com



4. Restart ur computer.

5. U r done.

No comments:

Post a Comment