Salut, Rick Matthews !

On Mon, 11 Nov 2002, Rick Matthews wrote:

> > Could anybody help me to implement the above logic in squidguard ?
>
> Try this:
> --------------------------
> logdir /usr/local/squidGuard/log
> dbhome /usr/local/squidGuard/db
>
> dest ok {
>       expressionlist  ok/expressions
>       redirect                http://some.local.host/ad.gif
>       logfile         blocked.log
> }
>
> dest ad1 {
>       expressionlist  ad1/expressions
>       redirect                http://some.local.host/ad.gif
>       logfile         blocked.log
> }
>
> dest ad2 {
>       expressionlist  ad2/expressions
>       redirect                http://some.local.host/ad.swf
>       logfile         blocked.log
> }
>
> dest adn {
>       expressionlist  adn/expressions
>       redirect                http://some.local.host/ad.mp3
>       logfile         blocked.log
> }
>
> acl {
>       default {
>           pass ok !ad1 !ad2 ... !adn all
>       }
> }
> --------------------------
>
> I'd like to see the finished product, if you wouldn't mind, and I'd be interested
> in the various regexp, too. (If you'd care to share them with me.)

the finished product is called "adzap" :) and what I'm trying to implement
is "squidguard running in adzap-compatibility mode" :)

well, two questions remain.

1) just curious. does "redirect" mean that 30x is to be returned ?

2) is it possible to redirect/rewrite the above ad1...adn, and to pass
everything by default.

I want to

a) pass ruleset which I explicitly specified

b) redirect/rewrite few rulesets which I also explicitly specified
   (I'd rather avoid 30x codes, what is difference of redirect and
     rewrite ?)

c) pass everything which doesn't match any of rulesets
   (an example You've given to me doesn't contain any "default", it is Ok
    ?)

>
> Rick Matthews
>
>
>
>
> ���� ������� wrote:
> >
> > I spent about a week reading documentation on squidGuard and decided that
> > I want to migrate to it. However, few questions still remain!
> >
> > adzap works by simply rewriting URLs, which is exactly the thing I want it
> > to do! it's Perl based, that's why I want to use squidguard.
> >
> > when certain URL belongs to PASS ruleset (regexp), that URL remains
> > untouched.
> >
> > when certain URL belongs to AD1 ruleset (again regexp) that URL is
> > replaced with http://some.local.host/ad.gif
> >
> > when certain URL belongs to AD2 ruleset (again regexp) that URL is
> > replaced with http://some.local.host/ad.swf
> >
> > <blah-blah-blah>
> >
> > when certain URL belongs to ADN ruleset (again regexp) that URL is
> > replaced with http://some.local.host/ad.mp3
> >
> > Could anybody help me to implement the above logic in squidguard ?
> > I don't need any source/time/username filtering, just plain projection of
> > few regular expression rulesets into few local URLs ?? I'm not sure about
> > "302", "301" codes, adzap doesn't return any 30x code, so I don't want
> > squidguard to do that. I want it to do just rewriting thing (as any
> > self-respecting squid redirector is supposed to do :-)
> >
> > Regards, (��������� ���������)
> > Ilia Chipitsine (���� �������)
> >
> >
>

Regards, (��������� ���������)
Ilia Chipitsine (���� �������)



  • ... Илья Шипицин
    • ... Rick Matthews
      • ... Илья Шипицин
        • ... Rick Matthews
          • ... Илья Шипицин
            • ... Rick Matthews

Reply via email to