#
# The trusted users file contains the IP adresses of the users that will
# not be restricted. Entrys in the format:
# 192.168.3.200/255.255.255.255
#
acl trusted_users src "/etc/squid/trusted-users.squid"
http_access allow trusted_users
#
# Restricted sites lists sites that the proxy should block in the format:
# .live.com
# .hotmail.com
# .hyves.com
acl BadSites dstdomain "/etc/squid/restricted-sites.squid"
http_access deny BadSites
#
# Default allow rule for the network, allow all other sites to the non-trusted users
#
acl our_networks src 192.168.3.0/24
http_access allow our_networks
Creating an URL blocklist and a trusted users group in squid
The following example shows how to create a blocklist for unwanted URLs in squid, and at the same time create a group of trusted users that are not restricted by this list.