You can block by hostname in iptables by simply using domain names instead of IP addresses. Alternatively, you could also achieve the same effect by creating some acls in your squid.conf file.
An example acl in your squid.conf to block the yahoo subdomains listed above would be:
[code:1]acl blockyahoo dstdomain scs.msg.yahoo.com scsa.msg.yahoo.com scsb.msg.yahoo.com scsc.msg.yahoo.com http.pager.yahoo.com[/code:1]
Re: How to block the yahoo messenger in linux firewall
12 years 10 months ago #12385