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

Possible Duplicate:
block certain websites from browser

I want to be able to open "example" from my computer, but I don't want to be able to open "". Is this possible?

share|improve this question

marked as duplicate by slhck Dec 5 '12 at 21:48

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

can you get to ? thats where redirects to. – Frank Thomas Dec 5 '12 at 21:27
this is just example :) ok I want block for example how can make this? – OTARIKI Dec 5 '12 at 21:32

You'll want to add it to your "hosts" file to block it:

share|improve this answer
Beat me by 28 seconds. – BillN Dec 5 '12 at 21:38
Haha, yeah I can't believe how three people came up with the same thing that quickly... Edit: 4! Edit: 5!!! – John Dec 5 '12 at 21:39
Yeah, looks like a bunch of people had a go at the same time :) – David Dec 5 '12 at 21:42

Add it to your hosts file:

This should prevent your browser from doing a DNS lookup on the site, and instead point it at your computer's loopback address. If your computer is running IIS and has a default website, you'll get that, if not you will get an error that the page cannot be found/displayed.

share|improve this answer

Open C:\Windows\System32\drivers\etc\hosts with Notepad and add the following entries to it:

So all traffic to that sites will be redirected to your computer

share|improve this answer

Open the "hosts" file in C:\Windows\System32\drivers\etc with Notepad (Windows 7). At the bottom of the text on a blank line add "" without the quotations and then save the file. When you go to it should no longer work.

share|improve this answer
Also, some ROUTERs have parental controls features within the web interface. Sometimes you can add websites you want to block within the router configuration. – j_bombay Dec 5 '12 at 21:45

You can add a line to your hosts file. This file is located in:


Open it with notepad and add lines like so:

Make sure that you do not rename the hosts file when you are saving it. It is normal for it to have no extension.

share|improve this answer
When I am trying save modified host file, I obtain this popup window: Please check if this file is opened in another program and changes is not saved. I am close all programs (included browsers) but when trying save changes, result again none. – OTARIKI Dec 5 '12 at 21:54

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