Block Facebook Chat on Your Network

2 05 2008

I don’t have a lot of time to post right now, but I just wanted to leave this note.  Now that Facebook has completely rolled out their Facebook chat integration, I had to block it at work (The only chat allowed is our internal XMPP server.) Blocking the feature is as simple as blacklisting a single URL, drumroll….

http://facebook.com/ajax/chat/

Done, now users will see how many friends are online, but if they go to send anyone a message, it will never go through, and chat history does not show up.  I am sure you can block more extensively, but for a quick and dirty fix, this does the trick.  Love being an administrator…


Actions

Information

6 responses to “Block Facebook Chat on Your Network”

13 05 2008
Zaghloul (07:04:16) :

Thank you so much, It is very elegant.

25 05 2008
KC (09:32:26) :

Thank you! Very useful. Simple and effective.

23 07 2008
Shylo (17:40:13) :

Thanks! AWsome ! Have a nice summer!!!

4 08 2008
snixx (06:31:56) :

Thanks alot, noticed quite a few of our clients using this when they shouldnt (Ive banned chat) so this will do the trick.

8 08 2008
Arckane (05:58:09) :

Added that to Squid and it’s still working.

Checked the page source and it doesn’t mention that url at all.

11 08 2008
jaredb. (16:45:27) :

@Arckane: It does not mention it in the source however if you run a TCP Dump you will see HTTP POST to that address. If you want to tighten it up even more you can block facebook.com/images/chat/ which will (obviously) block all images related to the chat interface. We could block certain javascript libraries/classes but that would break other things as well.

On another note, users will be able to receive messages, but not send using this block.

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>