Blocking a numerical IP address with HOSTS file

September 27th, 2013

There’s a program that whenever I launch it it it calls home to IP addresses 38.113.165.80 and 38.113.165.86 to check the serial to see if its on their blacklist.
How do I block everything from 38.113.165.XX (XX representing any number) using the HOSTS file?

Answer #1
http://winhelp2002.mvps.org/hosts.htm
here should help, it can explain how to do it.
Some software can do this for you if you need help, like hostsxpert.
Answer #2
@ andy1033
Thank You for trying to help but you misunderstood me, I already know how to edit the HOSTS file.
What I mean for example, this is a line in currently in my HOSTS file:
127.0.0.1 activate.adobe.com
Will it work if I enter the numerical IP instead?:
127.0.0.1 38.113.165.80
127.0.0.1 38.113.165.86
And how to block all IP addresses from 38.113.165 ?
Answer #3
The hosts file is not for blocking IP addresses, it is for DNS resolution. Typing that in will not work because Windows will only use hosts if trying to resolve a domain or host, not if trying to connect to an IP.
If you want to block specific IPs, you need to use your firewall.
Answer #4
OK, how can I do that with Kaspersky Internet Security 2012?

 

| Sitemap |