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

Answer:

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...

0.0.0.0 microsoft.com
0.0.0.0 oracle.com

3. Save the file.

 Leave a Reply

(required)

(required)

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>