Block Gmail Webchat !!

Hi all 🙂
Today we are going to block Gmail’s webchat from the Linux Machine.

Now the trick here is that as soon as we login to the chat is enabled by connecting to one of the following servers.

  • chatenabled.mail.google.com
  • talkgadget.google.com
  • talkx.1.google.com

Now the trick is in the hosts file we set the loopback address to this name.

To do that we first open the file /etc/hosts

#vim /etc/hosts

In that give the following entries.

127.0.0.1 chatenabled.mail.google.com
127.0.0.1 talkgadget.google.com
127.0.0.1 talkx.1.google.com

And its done ..Now the gmail webchat will be blocked.

In the same way you can block the gmail chat using IM’s for that just add the following line in the above file.

127.0.0.1 talk.google.com

Remember that this is the simplest method to block. There are more advanced methods using IPTables and Squid proxy which will be discussed later.

Advertisements