
Originally Posted by
CentOS
Before anything else, please take note that /etc/hosts was not really meant for blocking but instead, for mapping. You map an IP to a correspoinding domain name, much like what DNS does. The reason why putting (ex. 127.0.0.1 istorya.net) gives you the impression that it's blocking is because you are telling your machine that istorya.net is your own machine (when obviously it's not). If you were running a web server on that machine, surfing to istorya.net in the example above would actually open the web files from your own machine and won't connect to the remote host (the real istorya.net).
host.deny and host.allow are used to deny and allow hosts from accessing your machine. So pasulod, dili pagawas.