[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squidguard
Subject:    RE: Rewrite rules for search engines
From:       "Alex Harrington" <alex () longhill ! brighton-hove ! sch ! uk>
Date:       2005-10-06 12:33:08
Message-ID: 3184D7130E604C40B811896D67D6D40915F4E5 () mcpost ! mail ! longhill ! brighton-hove ! sch ! uk
[Download RAW message or body]

Hi Tony
 
There is a patch for SquidGuard to allow just this kind of thing without
having to have complex rewrite rules.
 
I think it was originally developed by the K12LTSP project.

I've got a mirror of the patch on our webserver here:
http://www.longhill.brighton-hove.sch.uk/dcode/alex/squidGuard/Google/

The syntax to use this is:

rewrite google {
    s@(google.com/search.*q=.*)@\1\&safe=active@i
    s@(google.com/images.*q=.*)@\1\&safe=active@i
    s@(google.com/groups.*q=.*)@\1\&safe=active@i
    s@(google.com/news.*q=.*)@\1\&safe=active@i
    s@(google.co.uk/search.*q=.*)@\1\&safe=active@i
    s@(google.co.uk/images.*q=.*)@\1\&safe=active@i
    s@(google.co.uk/groups.*q=.*)@\1\&safe=active@i
    s@(google.co.uk/news.*q=.*)@\1\&safe=active@i
}

acl {
        default {
                rewrite google
                pass !virusinfected !downloads sok !lb ok learndirect
!ads !adu
        }
}

You may also be interested in these:
http://www.longhill.brighton-hove.sch.uk/dcode/alex/squidGuard/LDAP/

Various patches for extra functionallity. There is a writeup for them
all here:
http://www.netdirect.ca/software/category.php?cat=SquidGuard
 
Hope that's helpful

--
Alex Harrington - IT Support, Longhill High School

t: 01273 304086 | e: alex@longhill.org.uk
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic