Hello Rick, Thanks for writing back - I *think* I figured things out:
1. I was looking at the wrong portion of the log output (I should have looked at the "status" portion, which is the output directly after the "method URL" part (in the common log file format, that is). 2. I ended up using CGI.pm in my script and modifed the header status using the "redirect" method with the "-status" argument (i.e., "$query->redirect( -status => "403 Forbidden" )";). This is all based on the assumption that 192.168.100.15 clundell - [04/Dec/2001:09:22:28 -0500] "GET http://www.porn.com/ HTTP/1.0" 403 584 TCP_CLIENT_REFRESH_MISS:DIRECT will be logged as a "denied" hit and not a hit which was allowed (because of "DIRECT" at the end). Is this a correct assumption? Thanks again for writing ;). Chris Rick Matthews wrote: > > Hi, I'd be glad to help with your questions but it's not clear to me > what you are asking. > > > 1. How can a redirection (in this case, a CGI script) > > specifically state a 403 error and not simply a redirection > > (even though squidGuard acts as a redirection)? > > Are you asking *how* to go about getting your redirection to do this? Or > are you asking *why* is your redirection doing this? Please post your > squidGuard.conf so we can see what you are trying to do. > > > The log > > file indicates that the forbidden url was actually reached, > > when actually it was simply redirected. > > Which log is showing that the forbidden url was reached? > > > 2. Is it possible not to log these attempts? > > Are we still talking about the attempt you mentioned above that was > successful? Do you not want to log the *successful* ones or the > *unsuccessful* ones? > > Is it possible to not log them *where* (which log file)? > > I'll be watching for your reply with answers to these questions. We'll > have you cooking in no time! > > Rick > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Chris Lundell > Sent: Monday, December 03, 2001 1:26 PM > To: [EMAIL PROTECTED] > Subject: help on redirects > > Hello, > > I'm just about finished configuring squidGuard and I have a stumbling > block: > > 1. How can a redirection (in this case, a CGI script) specifically state > a 403 > error and not simply a redirection (even though squidGuard acts as a > redirection)? The log file indicates that the forbidden url was > actually > reached, when actually it was simply redirected. > 2. Is it possible not to log these attempts? > > Thank you, > Chris -- Chris
