What is the best way to prevent my Windows computer to access certain IPs?

So far, I did it by adding this kind of lines to my hosts file:

However that doesn't seem like a clean solution since instead of going to, the computer connects to Is there any way to completely block so that when the computer tries to connect to it, the connection is really blocked?

2 Answers 2


You can block that ip on Windows Firewall Advanced Settings

Create a new outgoing rule and choose block all

I can't take screenshot now but you can read details in technet page : http://technet.microsoft.com/en-us/library/ff602926%28WS.10%29.aspx on "Configuring a profile" section.


I think the best way is to configure the machine's firewall to prevent those access.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .