On 06.03.2012 14:46, Benjamin E. Nichols wrote:
> Well you could use squids built in blacklist capabilities instead of
> adding complexity by trying to us squidGard or DansGuardian,
> particularly if your a noob at squid. Ive taken a look at them and
> decided that its too much effort to try and implement, Rather, this
> is
> how ive done it.
>
>
> Try this instead, its what I do.
>
> created a blacklist file, and place it somewhere, mine is in my squid
> dir
>
> /etc/squid3/squid-block.acl (u can name it whatever u want of
> course)
>
> add a few test entries to this file in the following format
>
> .pornsite.com
> .unwantedsite.com
> .whatevershit.com
> .someshitwebsite.com
>
> the . will ensure that www.pornsite.com or any subdomain is also
> blocked.
>
> (Attached is a copy of my own blacklist I use to block porn,
> malicious sites, and advertisements combined from several published
> blacklists that I have allready formatted for squid using sed and
> awk.)
>
> So next add these lines to your squid.conf
>
> #========blacklist by haxradio.com==========
>
> acl blacklist dstdomain "/etc/squid3/squid-block.acl"
> http_access deny blacklist
>
> #==================================
>
> then do
>
> squid3 +k reconfigure (assuming that your running squid3.x series)
>
Er, "-k"
> Voila, you are blocking sites using a black list my friend.
>
> btw, just ignore the stupid warning messages. they do not affect the
> functionality of this feature and ive learned
> to just ignore them.
Which warning messages?
Amos
Received on Tue Mar 06 2012 - 02:55:13 MST
This archive was generated by hypermail 2.2.0 : Thu Mar 08 2012 - 12:00:02 MST