6

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?

4
  • 2
    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
  • 1
    what is the purpose of a user blocking a webpage for himself, can't he just not go there? 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
2

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.

2

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("subdomain.example.com")){
    oSession.bypassGateway = true;
    oSession["x-overrideHost"] = "127.0.0.1";
}

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

1

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

0

You could use OpenDNS, this could block websites for your whole network (if you set up your DHCP settings to use the openDNS) http://www.opendns.com/solutions/overview/

1
  • 6
    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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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