we can do rhis quickly by not allowing any packets to the yahoo.com domain. but yahoo.com will not work also.
This is more for the job of a firewall that can block simple ports . IM works on certain ports then if it can not find those ports it uses port 80 with you can not block it , that is all internet traffic. so you will have to block it by ip address or host name. connect to the internet chat (yahoo.com and then run ) nbtstat -s and nbtstat -S this will show the connections used and the protocal you will need to block. IT will change alot. Yahoo uses about 30 or 40 nmane servers to server yahoo chat. If you block yahoo.com and the backup doamin you will end it quick.
Good LUck