I just learned that I can edit the Windows (Vista) host file to assign IPs to domains (host) so that the local system checks the domain against the host file before going through the DNS.
My question is: is there a way to redirect an IP instead for example in the host file it's
127.0.01 domain.com # domain.com resolves to loopback
what I want is something like:
127.0.0.1 xxx.xxx.xxx.xxx #specifc IP gets "blocked"
for example, if a trojan uses a host to communicate with the hacker, I could in thoery use the host file to prevent that. But if the actual IP is used in the trojan, is there anyway to stop that?
Many thanks in advance.