The methods suggested above would be okay for some people, but neither of them use Squid for the blocking - which is what has been asked. The simplest way to block sites with Squid is to use a
dstdomain ACL. Lets say for example you want to block
Slashdot.org,
Freshmeat.net, and
DistroWatch.com for clients on the 192.168.1.0/255.255.255.0 subnetwork:
Code:
acl my_subnetwork src 192.168.1.0/255.255.255.0
acl blocked_sites dstdomain .slashdot.org
acl blocked_sites dstdomain .freshmeat.net
acl blocked_sites dstdomain .distrowatch.com
http_access deny blocked_sites my_subnetwork