> If when you try to connect to a site you are redirected to > the 'blocked' page, is there any method of finding out which > category has blocked the page? That is, any method other than > searching through the 'domains' and 'urls' manually.
Yes, the group can be passed to a CGI script, e.g. (from http://www.squidguard.org/config/#example07) redirect http://info.foo.bar/cgi/blocked?clientaddr=%a&clientname=%n&clientuser=%i&cl ientgroup=%s&targetgroup=%t&url=%u which passes the group to the CGI as the 'targetgroup' field. I have a block script that uses different explanations according to the target group (e.g. "This site was blocked because..."). Also, the logs (if enabled in your squidguard.conf) indicate which source and destination group were used, e.g. 2002-07-08 15:38:13 [876] Request(internal/adult/-) http://www.naughtysite.com where 'internal' is the source group and 'adult' is the target group. I'm not aware of any easy way of finding out whether the block was from the domains or urls lists, but I suspect you could do this using the Perl hooks into db, but I haven't had time to play yet... Hope this helps! Nick Barron, Group IT Security Officer Pennant Software Services Ltd -- Registered in England No. 3772667 PGP: A94C 4190 026E 3E02 6D50 C8FA 8620 3091 FF34 533D
