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

How could I block a website from opening on my computer regardless of the browser I use . I tried modifying the host file with no success so far . Any ideas?

share|improve this question

One of 2 options I can think of right this second. Edit the host file or block it in windows firewall.

host: Let's say you want to block

Open notepad as administrator, find notepad in the Start menu, right click, open as admin or search for notepad in the search bar in the start menu and right click open as admin.

Once notepad is opened goto:


Open the hosts file

Add under all the text a line by itself without a # in front of it (# means that line is a comment and will do nothing).

to block google for instance:


Now when you go to in any browser, it tries to grab the page from the ip which goes no-where.

share|improve this answer

I think this problem has been solved, but for completeness I'll add this: Firefox Addon - Kitten Block

Because you probably want to put something on one of these browsers in addition to the system 32 solution say, because the "unable to connect" page is a rubbish place to keep going.

share|improve this answer
What a fantastic add-on! – wonea Nov 27 '12 at 10:43
regardless of the browser -- I'd say a Firefox addon is pretty browser-specific... – Bob Nov 27 '12 at 10:50
I'm saying you make the actual changes in system32 but you cover it up on the browser level for aesthetic reasons. – Nathan Cooper Nov 27 '12 at 11:04
There are probably more boring scripts for this you can run on greasemonkey (e.g.) for non-mozilla-fans. – Nathan Cooper Nov 27 '12 at 11:11
Unfortunately , the site somehow worked again after it was blocked. The method I tried is obviously not working . – nabil Nov 28 '12 at 5:29

maybe it's redirected website if so blocking via host does not work until you enter the redirected web address in host file.

share|improve this answer
Thanks, Kaveh . I have just solved the problem . I used a program called hostsman and the website is blocked :) – nabil Nov 26 '12 at 10:39
wow great!, that's a very handy tool. thanks for recommended it to me. – Kaveh Nov 26 '12 at 10:59

You must log in to answer this question.

protected by Community Jul 15 '14 at 10:30

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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