Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 3 down vote accepted

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 : on "Configuring a profile" section.

share|improve this answer

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

share|improve this answer

You must log in to answer this question.

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