Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
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? –  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

4 Answers 4

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 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/

share|improve this answer
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

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.

share|improve this answer

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

share|improve this answer

Your Answer

 
discard

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.