Saturday, 27 February 2016

HOW TO BLOCK SPECIFIC WEBSITE IN UBUNTU OPERATING SYSTEM


hi friends,
today i want to explain you how to block specific websites using ubuntu host.
by simply editing your host file using gedit you can block which ever the website you want.
 here is the way procedure goes

-->

With the hosts file, you can tell Ubuntu to redirect the specific websites to 127.0.0.1. So that the web browser returns below error:

To do so, edit the /etc/hosts with your favorite editor. Press Ctrl+Alt+T on your keyboard to open terminal. When it opens, run below command to edit the hosts via gedit:

sudo gedit /etc/hosts



Add below lines to the end of the file. Exclude the “http://” and change the domain names.

# block access to certain sites
127.0.0.1 www.websites1.com
127.0.0.1 www.websites2.com
127.0.0.1 websites3.com
127.0.0.1 morewebsites.com

by using this method you can block number of website.
it also works like simple parental control for your pc operating on ubuntu or linux platform.

thank you

No comments:

Post a Comment