On Thu, 9 Mar 2006 15:30:05 -0500, Nick Duda wrote:
>Would you know how I can print something on the screen if the
>targetgroup variable = something specific.
Do you mean something like this:
if ( "$targetclass" == "porn" ) {
echo "ERROR: You've accessed porn";
}
Or:
switch ($targetclass) {
case "porn":
echo "ERROR: You've accessed porn";
break;
case "mail":
echo "ERROR: You've accessed webmail";
break;
}
Alternatively, as our "porn blocked" page is so different to the
generic one that we decided to redirect it to a different script
altogether. You can still have a default redirect page in your
ACLs, but a destination-specific one can be used to override it:
dest porn {
expressionlist porn/expressions
domainlist porn/domains
urllist porn/urls
redirect redirect
http://proxy/porn.php?clientaddr=%a&clientname=%n&clientuser=%i&clientgroup=%s&url=%u&targetclass=%t&path=%p
}
ant
--
Anthony W Owen BSc(Hons) <[EMAIL PROTECTED]>
ICT Network Manager. Fallibroome High School. Priory Lane
Macclesfield. Cheshire. SK10 4AF. Tel: 01625 827 898
http://www.fallibroome.cheshire.sch.uk/