I need to block access to Facebook in my office on certain PCs that are connected to a LAN. I tried using the hosts file, it works for www.facebook.com but not for https://it-it.facebook.com/, how can i block that ? Maybe block all Facebook IPs ? I have a firewall but my PCs doesn't have static IPs so i can't block only the PCs i want to.
Asked
Active
Viewed 3,879 times
1 Answers
0
Unfortunately - and sorry to be the bearer of bad news - the windows hosts file does not support wildcards or similar. It would be brilliant if *.facebook.com could be put into HOSTS, but it wouldn't work.
This leaves you with the following choices:
- Company proxy to filter web traffic by groups
- lots of lines in your hosts files (it-it.facebook.com, facebook.com, static.fbcdn.com etc)
- some sort of dns blocking program... have a quick google around and see what you can find, there are a few good free ones out there
- Block facebooks IP range on your router. this link lists all of their IP ranges.
Fazer87
- 12,965