Re: [squid-users] Site filtering issue.... Resolved

From: Amos Jeffries <squid3@dont-contact.us>
Date: Wed, 16 Apr 2008 15:04:00 +1200 (NZST)

> Thanks for the reply Felix. I guess that must have helped. I did as
> you said but that seem to block all the sites. Which made me think
> that the order of the commands make a difference. Which is why, I
> followed the default squid.conf file and put the commands in some what
> the same order as it is on there. I also had to add in some other
> syntax's
> Well, I have a working squid now. It was just the order that was
> messing up everything.
> Here is the working config.
> I will try to setup SARG along with squid. Lets hope it goes well.

There is one more point to fix.
From your example all those 'dstdomain_regex' should be just 'dstdomain'
ACL. Much faster and scalable for longer lists.

> acl ads_blacklist dstdom_regex "/etc/squid/blacklist/ads/domains"
> acl aggressive_blacklist dstdom_regex
> "/etc/squid/blacklist/aggressive/domains"
> acl audio-video_blacklist dstdom_regex
> "/etc/squid/blacklist/audio-video/domains"
> acl drugs_blacklist dstdom_regex "/etc/squid/blacklist/drugs/domains"
> acl gambling_blacklist dstdom_regex
> "/etc/squid/blacklist/gambling/domains"
> acl hacking_blacklist dstdom_regex "/etc/squid/blacklist/hacking/domains"
> acl mail_blacklist dstdom_regex "/etc/squid/blacklist/mail/domains"
> acl porn_blacklist dstdom_regex "/etc/squid/blacklist/porn/domains"
> acl proxy_blacklist dstdom_regex "/etc/squid/blacklist/proxy/domains"
> acl redirector_blacklist dstdom_regex
> "/etc/squid/blacklist/redirector/domains"
> acl spyware_blacklist dstdom_regex "/etc/squid/blacklist/spyware/domains"
> acl suspect_blacklist dstdom_regex "/etc/squid/blacklist/suspect/domains"
> acl violence_blacklist dstdom_regex
> "/etc/squid/blacklist/violence/domains"
> acl warez_blacklist dstdom_regex "/etc/squid/blacklist/warez/domains"
> acl networking_blacklist dstdom_regex
> "/etc/squid/blacklist/networking/domains"
> acl torrent_blacklist dstdom_regex "/etc/squid/blacklist/torrent/domains"
>

Amos
Received on Tue Apr 22 2008 - 15:19:05 MDT

This archive was generated by hypermail 2.2.0 : Thu May 01 2008 - 12:00:04 MDT