Originally Posted by prashant.saraf
In windows we have a file called HOST(%windows%drivers/etc), we can block/redirect sites to desire location, Can I do same thing in my Fedora 10?
Hi and Welcome to LQ!
Secondly, in short answer to your question: Yes.
Thirdly, it can be done in any Linux system (not only Fedora) using different approaches. It's not a Windows feature BTW.
If you see you notice that /etc part in the file path of the Windows system tries to emulate the Unix file system hierarchies.
Anyway you can do what you desire. There is a /etc/hosts file where you can do what you did in the Windows system.
Another way of doing that is by using the TCP Wrappers system. This is how you do it. You can use hosts.allow and hosts.deny file in /etc to allow or deny connections. See 'man 5 hosts_options' and 'man 5 hosts_access'for more information on rule syntax.
There are other techniques too, but I guess these might be sufficient and simple.