R�mi, Thanks for your suggestion. It works perfectly, if not elegantly.
The reason that the url goes into my script is that the redirected url is then displayed on the page by the cgi script, which gets it from the url. Isn't that the standard squidGuard cgi that came with squidGuard? Did I modify that? Thanks, Yosi > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > Rousseaud R�mi > Sent: Tuesday, February 08, 2005 7:38 AM > To: [email protected] > Cc: Yosi Greenfield > Subject: RE : squidguard.cgi on expressionlist infinite loop > > > Hi Yosi, > > I can't figure out why your redirected URL goes into > squidGuard filtering. > This should normally not append. > > Anyway, you may create a white list containing the URL of > your squidGuard > cgi script. > And then, add this "allow" list at the begining of the "pass" > statement in > your conf file. > > This way, the redirected URL will first match this "white" list before > matching the blocking regex, > and the squidGuard script will always pass without being blocked. > > HTH, > R�mi > > > -----Message d'origine----- > > De : Yosi Greenfield [mailto:[EMAIL PROTECTED] > > Envoy� : mardi 8 f�vrier 2005 06:11 > > � : [email protected] > > Objet : squidguard.cgi on expressionlist infinite loop > > > > > > 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 > >
