Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Nov 062010

Block website access in Linux


The simple way to block access to web site is to change the hosts file.

1. Open the hosts file

# sudo vi /etc/hosts

2. Change the content, such as...

3. Save the file.

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>