Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is it possible to use Windows Firewall to block specific web sites for all browsers?

share|improve this question
add comment

2 Answers

Yes, you should be able to achieve that using the Advanced Settings of the firewall. But you will need to know all the ip addresses of the remote servers.

See this example which talks about ICMP but you can do the same for any traffic. The Scope tab would be of interest because that's where you would define the remote ip of the web server(s).

share|improve this answer
    
The key thing being, "the IP addresses of the remote servers." The Windows firewall can't block "facebook.com", it can block 69.63.181.12 (etc) though. –  sysadmin1138 Apr 13 '11 at 20:44
    
Does the "local IP Addresses" list apply to the local intranet? Is there any way to specify no local IP addresses? –  Mark Cidade Apr 13 '11 at 20:44
    
The "local IP addresses" refers to the ip address(es) of the machine's network card(s) or 127.0.0.1. But if you wanted to block access to this machine from the local network, then you would need to specify the ip addresses for the local machines/network in the remote ip as well. As far as the firewall is concerned, unless it resides on the local machine, then it is considered remote. More information would help answer the second question. Is this server the middleman between clients and websites? What role does it play? –  Bourne Apr 13 '11 at 22:11
    
This is on a workstation. –  Mark Cidade Apr 14 '11 at 9:40
    
OK. When you say "no local ip addresses", do you mean allowed or denied? No matter which one, you can create a second firewall rule where you specify the local subnet to be allowed or denied. –  Bourne Apr 14 '11 at 18:56
add comment

Its probly better to block in the router or if you want it on a machine only do a redirect in the hosts file. en.wikipedia.org/wiki/Hosts_(file)

share|improve this answer
add comment

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.