Wednesday, 28 September 2011

how to block websites in linux


How to block websites in linux for this you must be root user, other wise you cant do this.
so here is the trick!!!


1. Open terminal, and type vi /etc/hosts
2. Goto end of the file and press 'i' the you enter into editing mode
3. Now type like below line
127.0.0.1                www.google.com
4. Now press "esc" key
5. Now type ":" and then wq nad press enter
6. Now you are again in terminal
7. After thet type #service network restart

Related Posts Plugin for WordPress, Blogger... TwitterFacebookGoogle PlusLinkedInRSS FeedEmail Delicious Digg Stumbleupon Favorites More

Share

TwitterFacebookGoogle PlusLinkedInRSS FeedEmail Delicious Digg Stumbleupon Favorites More