Article Figure 1 Figure 2 Listing 1 Listing 2
Listing 3 Listing 4 Listing 5 Listing 6 Listing 7
Sidebar feb2004.tar

Listing 4 Web server running behind the Squid server, applying the ACLs shown here

acl all src 0.0.0.0/0.0.0.0
acl mynetwork src 192.168.0.0/24
acl allowed_ports ports 80 8080
acl allowed_urls regex -i ^http://www.mywebserver.xxx

http_access allow mynetwork allowed_ports
http_access allow !mynetwork allowed_urls allowed_ports
http_access deny all