Blocking and Allowing Sites in Squid
July 26, 2010 Leave a comment
Well, ran into a config issue on the new squid server I’m working on. Still working out all the kinks, but I did learn something new.
You can create a site list and then setup and acl, and block sites within this list. This was not new to me, but it was the way it was done that got me thinking.
acl allowsites url_regex -i "/etc/squid3/allowed-sites" http_access allow allowsites
By using url_regex, squid will look through the whole url to see if any of the strings i the file match and deal with them accordingly. Seems to be working well so far.