If you are using squid then it is quit easy to setup deny filter. Or you can use iptables.
First find out ip address of site such as hotmail.com
Code:
nslookup hotmail.com
Server: 203.145.xxx.xx
Address: 203.145.xxx.xx#53
Non-authoritative answer:
Name: hotmail.com
Address: 64.4.33.7
Name: hotmail.com
Address: 64.4.32.7
and use iptables to append rule to exisitng tables (better in script)
Code:
iptables -A OUTPUT -d 64.4.32.7 -j DROP
See for more example
http://www.cyberciti.biz/nixcraft/vi...-outgoing.html