Can’t Block A Website.

heepbigchief asked 2 years ago

Does anyone know how I can have facebook blocked in my hosts file

127.0.0.1 connect.facebook.net
127.0.0.1 facebook.net
127.0.0.1 api.facebook.com
127.0.0.1 facebook.com

yet I still can access the facebook website?

I turned on my packet sniffer and went there again and then added

127.0.0.1 www-11-02.snc5.facebook.com

yet I can still access the site. I have nothing to do with facebook and I don't want my computer to be able to access it so what could be going on here?

2 Answers
Rob Vargas Staff answered 2 years ago

Depending on what exactly it is that you're trying to block, can't your antivirus block it?

Since Facebook might be operating a distributed farm, you're going to need an entry for every possible server you might hit when Facebook is called up. If you try long and hard enough, you might get all the entries in that would block it, but you'd be better off with some kind of Web blocking software that is more application aware. Otherwise, you might block the site, but still get Farmville or FB chat, etc. One example is http://www1.k9webprotection.com/. It's a free filter from http://www.bluecoat.com/, a very well known and respected firewall and security appliance manufacturer. I think that would be a better option for you. For a single PC or a small number of them, anyway.

heepbigchief answered 2 years ago

Strange though, I tried going to these sites you see listed and they are blocked but facebook.com is also in the hosts file but is not blocked.

127.0.0.1 xxokoriq.cn
127.0.0.1 www.xxokoriq.cn

127.0.0.1 facebook.com

I added

127.0.0.1 www.facebook.com

and now facebook is blocked AFTER I added the www.

Know the answer? Login or sign up for an account to answer this question.
Sign Up