how to block facebook?

I'm running a NAT network and i've tried to block facebook by editing the host file but it doesn't work
i wonder if this is because its a NAT network. I can't use parental controls because it not only blocks everything but seems to not allow you to use any forms like logging in to their web based email accounts like hotmail etc..... I'm at a dead end can anyone suggest anything?

xserve, Mac OS X (10.5.2), xserve

Posted on Jan 12, 2009 10:59 AM

Reply
13 replies

Jan 13, 2009 10:45 AM in response to purplemonkey1

I'd suggest a proxy server, too.

It would have the benefit of caching content to improve performance for content that multiple users are accessing, as well as giving you control over which sites can and can not be accessed.

It would require third-party software, though, since there's nothing built-in that will do this, and you'll need to edit each client system to tell them to use the proxy server, but that should do the trick.

Look at something like Squid for one option.

Jan 13, 2009 11:03 AM in response to purplemonkey1

Remember that [NAT firewall router|http://discussions.apple.com/message.jspa?messageID=8794637#8794637] I've suggested for those other issues you've been working on? That typical mid-grade firewall plugs this particular requirement, too, as various of these devices have content filtering, either by web domain name or by IP address.

Analogous to the proxy server in terms of the network position, these firewall devices use their position on the edge of the local LAN to control inbound and (for cases such as this) outbound traffic.

These widgets located out on the network border do often implify network administration, in my experience.

Jan 14, 2009 7:26 AM in response to purplemonkey1

Does Mac OS X Server have NAT and firewall and web proxy capabilities? IP Routing? Yes.

Mac OS X Server makes a capable network appliance.

But are you positioning, wiring and operating and setting up the routing for the Mac OS X Server box here as if it were an appliance?

Or are you operating it as a general-purpose system with user-level activities and related tasks?

These two uses tend to be in relative opposition.

Appliances providing NAT and firewall are typically configured and placed on an IP network differently than a general-purpose computer. This due to how IP routing works and particularly with multiple NICs on one host, and how these services process arriving (or departing) IP traffic.

As for appliances, an Airport Extreme can make a more economical firewall/NAT box for instance, and there are other options. And I prefer to keep the users (including myself in that) off of my firewalls.

The web proxy server is used in conjunction with the firewall, too. The firewall is configured to accept traffic headed to port 80 only from the web proxy server.

I'd dearly love to be able to afford a rack of Xserve boxes providing NAT and firewall and everything else that they're good at. But I still would not mix general-purpose usage and appliance usage on the same box, or within the same guest inside a virtual machine instance. And I'd still look to use dedicated appliances, as an Airport Extreme or a Time Capsule can be more economical than an Xserve at various of these tasks.

And it would be a whole lot easier to get rid of NAT entirely here, if you can get a subnet somewhere in the organization's 10.0.0.0/8 net, or enough addresses in the local subnet within the 10.0.0.0/8 block. I won't suggest going to IPv6, unless the local organization is already headed there...

Things just get hairy when you have everything all running on one box.

Jan 14, 2009 3:09 PM in response to purplemonkey1

Are your users managed by the OS X server? If so, you can set their network preferences to point to a proxy of some kind. In the same network preferences you can set certain domains i.e "facebook.com" so that they bypass the proxy.

If you use something like Squidman:

http://homepage.mac.com/adg/SquidMan/index.html

And install it on a server somewhere, you can use this as the proxy. Though presumably you must be going through some kind of proxy already? Even if it's unfiltered.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

how to block facebook?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.