Hi All,

When squidGuard blocks a page on our server, it presents
the url of the blocked page in the redirected url, so that
it can be displayed in th page by the squidguard script.
That's standard stuff.

However, when blocking by a regex, so if the regex is,
let's say, 'yahoo' - which is a simple regex just for the
example here - so it blocks yahoo.com. But it also blocks
itself - the squidGuard cgi script with the url=yahoo in
the url of the squidguard cgi.

This becomes a recursive squidguard block that eventually
either hangs, dies, or in mozilla actually comes back with
a nice error dialog box.

How can I eliminate the recursive regex?

I tried using a "zero-width negative lookbehind" regex,
as follows:

 (?<!url=)http://www\.yahoo\.com

but it doesn't work.

Is that because squidguard doesn't recognize zero-width
negative lookbehinds in regexes? Or for some other reason?

Thanks so much for reading this. If you can help, I'd
really really appreciate it!

Thanks,
Yosi




I have squidguard blocking an expression list

Reply via email to