Blocking and Allowing Sites in Squid

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.


About Paul Cardelli, CISSP
Cyber Security Analyst, and computer guru

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: