Robert,

Please see my changes below to the config that you posted. I am also
attaching my squidGuard.conf file; you may be able to glean a trick
or two from it.

src Folks {
  1.2.0.0/16
}

dest porn {
  domainlist porn/domains
  redirect "http://another.com/YouSuckAndImLoggingIt.cgi?parmslist";
}

dest irritants {
  domainlist ads/domains
  redirect "http://somewhere.com/blank.gif";
}

acl {
  Folks {
    pass !irritants !porn all
  }
  default {
    pass none
    redirect "http://another.com/access_denied.html";
  }
}



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Robert
Nickel
Sent: Friday, February 08, 2002 7:06 PM
To: [EMAIL PROTECTED]
Subject: Config question...


If I want to block porn sites with a redirect to a cgi that presents
a shame on you page but only wish to eliminate the irritation
associated with banner ads, what would I do in the acl section if I
want this behavior for the same source group.

will the following work?

dest porn {
  domainlist porn/domains
}

dest irritants {
  domainlist ads/domains
}

src Folks {
  1.2.0.0/16
}

acl {
  Folks {
    pass !irritants
    redirect "http://somewhere.com/blank.gif";
  }
  default {
    pass !porn all
    redirect
"http://another.com/YouSuckAndImLoggingIt.cgi?parmslist";
  }
}

Hopefully, this would load the pages content (if it wasn't porn) and
return the blank.gif for all the banner ad site links.

Thanks,
  --Robert

Attachment: squidGuard.conf
Description: Binary data

Reply via email to