[Lias] Re: [acscomputers] Google rewrites?
John Summerfield
summer at corridors.wa.edu.au
Tue Aug 23 17:44:02 UTC 2005
Daniel Palmer wrote:
>>Paul Gear wrote:
>>
>>>Jason Parlevliet wrote:
>>>rewrite google {
>>> s@(google.com/search.*q=.*)@\1\&safe=strict at i
>>> s@(google.com/images.*q=.*)@\1\&safe=strict at i
>>> s@(google.com/groups.*q=.*)@\1\&safe=strict at i
>>> s@(google.com/news.*q=.*)@\1\&safe=strict at i
>>> log google
>>>}
>>>
>>>and then 'rewrite google' later on in the acl section, but
>>>this is producing the following error in syslog:
>>>
>>>squid[12164]: urlParse: Illegal character in hostname
>>
>>'www.\1\&safe=strict'
>>
>>That looks to me like the substitution isn't happening, but i'm not
>
> sure - the regex looks fine to me.
>
>>Can any of the LIAS folks offer a suggestion?
>
>
> Looking at the squidGuard conf - it rewrites the whole URL so you prob
> want something more like
> s@(google.com/search.*)@http://www.google.com/search\1\&safe=strict@i -
> but as Paul said - it doesn't look like the substitution is taking
> place. I haven't played with this part of squidguard :-S
https://listman.redhat.com/archives/k12osn/2004-April/msg00805.html
--
Cheers
John
Corridors College Western Australia
More information about the lias
mailing list