[squid-users] squid redirect question

From: Bruce Bauman <bruce.bauman_at_venture3systems.com>
Date: Thu, 28 Jul 2011 09:50:49 -0400

I am running a web browser, squid, and squidguard all on a single
machine. I am *NOT* running a local webserver. I want to do web
filtering based on some blacklists configured into squidguard.

My current configuration has squid configured as follows:

redirect_program /usr/local/bin/squidGuard \
-c /usr/local/etc/squid/squidGuard.conf

and squidguard configured to redirect as follows:

acl {
        default {
                pass !porn all
                redirect file://block.html
        }
 }

This fails because squid tries to interpret the URL passed back by
squidguard.

What I really want is to just pass back the failure to the originating
browser and deal with the blocked access there. How can I get squid to
just pass back to the browser. Since it's our custom browser we can deal
with generating the error there.

Thanks.

-- Bruce
Received on Thu Jul 28 2011 - 13:50:56 MDT

This archive was generated by hypermail 2.2.0 : Fri Jul 29 2011 - 12:00:02 MDT