> 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.)
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 (���� �������)
>
>