LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Using the "hosts" file (https://www.linuxquestions.org/questions/linux-newbie-8/using-the-hosts-file-777634/)

anaigini45 12-23-2009 03:29 AM

Using the "hosts" file
 
I have to block access of certain websites into my company's server. Is it a good idea to use the hosts file to block access ? Any other better ways?

Agrouf 12-23-2009 03:37 AM

You mean /etc/hosts?
I'm afraid that file is not blocking any access...
You should better use iptables for that.

vishesh 12-23-2009 03:40 AM

You can use tcp wrapper , that is /etc/hosts.allow and /etc/hosts.deny

thnks


All times are GMT -5. The time now is 04:16 PM.