[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] Enhancement to squidGuard package to force Google's SafeSearchfeature to be ON



Ha!

Well, I was having lots of trouble getting this to work. Your patch worked fine, everything built fine... it installed fine... but it just wouldn't go. I was tairing my hair out.

So, I was reading around, and found that the correct action for a redirector is either to return the redirected URL, or return a blank line if the current URL is to be untouched.

There's where my problem was. I was already using AdZapper, and I just added a second "redirect_program" line for squidGuard. Squidguard was getting blank lines to redirect. No wonder it didn't work! (Bangs head on keyboard)

Well, thanks again. I'll be spending some time figuring out how to run adzapper along side squidGuard, or just drop adzapper altogether.

--Matt

Eric Harrison wrote:

On Wed, 28 Apr 2004, Matt Ross wrote:



Hi Eric. I'm new to the list, so forgive me if this has been answered somewhere already.

I was looking at the email below, and attempted to implement it on my existing Squid system for my school. Great idea, but I can't figure out how you got it working...



s@(google.com/search.*q=.*)@\1\&safe=active i


The above line doesn't make sense to me. Here's my problem: How does "\1\" bring back the requested URL? According to SquidGuard's homepage, %u should do that trick. But neither works for me, only static destinations work...



My squidGuard binary is patched to enable full regular expressions. You can't do back-references (the \1) with the stock squidGuard.



Also, you don't have the third "@", which seems to be required for my rewrites. Perhaps you are running a different version of squidGuard? (I'm using Debian's 1.2.0-1 version of squidGuard, FYI.)



The third "@" was stripped out somewhere along the way. Don't know if it was me or someone else. Either way, he's my current configs:


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.../search.*q=.*)@\1\&safe=active i s@(google.../images.*q=.*)@\1\&safe=active i s@(google.../groups.*q=.*)@\1\&safe=active i s@(google.../news.*q=.*)@\1\&safe=active i }




If you can give me some hints on why/how this is happening, I'd greatly appreciate it. Otherwise, I'll probably be writing my own redirector for this very purpose.



My source package is at:


ftp://k12linux.mesd.k12.or.us/pub/K12LTSP/4.0.1/K12LTSP/SRPMS/squidGuard-1.2.0-7.k12ltsp.0.3.1.src.rpm

Feel free to swipe it & build a deb.

-Eric


_______________________________________________
K12OSN mailing list
K12OSN redhat com
https://www.redhat.com/mailman/listinfo/k12osn
For more info see <http://www.k12os.org>





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]