> I've decided I also want to include the > information about which database blocked it. > I was hoping one of the builin variables > would do this but it doesn't seem to.
It worked for me. I used the squidGuard.cgi that came with squidGuard, and I'm calling it with this redirect: redirect http://192.168.44.1/cgi-bin/squidGuard.cgi?clientaddr=%a&clientname= %n&clientuser=%i&clientgroup=%s&targetgroup=%t&url=%u&lang=en According to the documentation <http://www.squidguard.org/config/>, the matched destination group is passed with the "%t". Using these my redirect page lists: Additional information: Client address = 192.168.44.3 Client name = Client user = rick Client group = parents URL = http://www.dummy.net/ Target group = porn Did I misunderstand what you are trying to accomplish? Rick Matthews -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin White Sent: Wednesday, April 17, 2002 3:09 PM To: [EMAIL PROTECTED] Subject: passing variables to the cgi Hello everyone, I've mentioned before that I'm sending myself emails using a reconfigured CGI thats pulled when a client is redirected. I've decided I also want to include the information about which database blocked it. I was hoping one of the builin variables would do this but it doesn't seem to. I've tried adding to the end of the redirected url something like http://myurl.com/cgi-bin/blocked.cgi?&url=%u&clientname=%n&dbcode=ad ult but even then my cgi return nothing other than the url and client IP address. Even when the line in my modified cgi script simply says print "<TR><TH ALIGN=RIGHT>Denial Code<TH ALIGN=CENTER>=<TH ALIGN=LEFT>$dbcode\n" and the line that has if (key =~ /^(clentaddr|url|clientname|targetclass|etc to include dbcode I get nothing from the variable. According to my perl book I should be able to pass this off as this variable to the cgi in this fasion. Any ideas? Sorry if this is slightly offtopic. I figured it has something to do with the cgi script since it came with squidguard and I just added a few lines. -- Kevin White, Linux+, A+
