Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Is it possible to block website on Windows without modifying hosts files? The reason I do not want to use it is that users need administrator options to modify it.

I need some easier way to block a website. Any ideas?

share|improve this question
So you want a way to block websites that users without administrator rights can configure? – petersohn Apr 6 '10 at 18:48
I want a user which does not have administrator rights to be able to block webpages for himself only. – Giorgi Apr 6 '10 at 20:16
what is the purpose of a user blocking a webpage for himself, can't he just not go there? – Jeff Martin Apr 6 '10 at 22:27
I'm not sure why you want to let users block things for themselves when they could just not visit the site, but if you just want to block it in the browser, check out firefox addons like leech block, or find something equivalent for your browser. That may serve the desired purpose. – nhinkle Apr 7 '10 at 2:23
up vote 2 down vote accepted

Why don't you just change the permissions on the hosts file so that "Everyone" or "Authenticated Users" have modify? Then anyone can edit it. Though, I am confused as to why you would ever do this.

share|improve this answer

You could use Fiddler with the following bit of fiddlerscript. You can add them in Rules > Customize Rules… and put it under the OnBeforeRequest function:

if (oSession.HostnameIs("")){
    oSession.bypassGateway = true;
    oSession["x-overrideHost"] = "";

This would cause your browser to search for a website on localhost rather than This script simulates the Windows hosts file.

share|improve this answer

You can use "Block content" in Opera or AdBlock in FireFox.

share|improve this answer

You could use OpenDNS, this could block websites for your whole network (if you set up your DHCP settings to use the openDNS)

share|improve this answer
It would only block sites for your whole LAN if you specified it as the DNS server in your DHCP server (like your router). If you just set your computer to use it, only your computer will be affected. – Nathaniel Apr 6 '10 at 19:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.