I've modified your squidGuard.conf; I believe this will accomplish what
you've asked for. Please see my comments following the conf file.
-----------------------------------
dbhome /usr/local/squidGuard/db
logdir /usr/local/squidGuard/log

dest itsok  {
                urllist         itsok/urls
                domainlist              itsok/domains
                expressionlist  itsok/expressions
}

dest porn   {
                domainlist              porn/domains
                urllist         porn/urls
                redirect                http://localhost/porn.html
}

dest mylist {
                domainlist              mylist/domains
                urllist         mylist/urls
                expressionlist  mylist/expressions
                redirect                http://localhost/mylist.html
}

dest ads        {
                domainlist              ads/domains
                urllist         ads/urls
                expressionlist  ads/expressions
                redirect                http://localhost/ads.html
}

acl {
                default {
                pass itsok !porn !mylist !ads all
                redirect http://localhost/banned.html
                }
}
-----------------------------------
Comments:

1) The expressionlists truely are "black magic" (as someone around here
has said). I'm shooting from the hip here, but I think it will be
incredibly difficult to manage 2 negative and 1 positive expressionlist
while retaining any idea of what is being blocked and what is passed. At
a minimum, I'd suggest removing all expressionlists until you have
everything else working as planned. Then, as you begin to shove the
bamboo under your fingernails... I mean, as you begin to work on the
expressionlists, remember that you've already isolated the problem.

2) You might want to consider changing your ads redirect to a 1x1 blank
gif file, e.g. http://localhost/1x1.gif. Since the file is small and
it's easier to send than explain, I've attached a copy of 1x1.gif. I
think you will like the difference it makes in the user experience.

3) As written (above), no one should see http://localhost/banned.html.
I'd leave it in place, however, since it would be needed if you added
source groups or time constraints later.

Hope that helps!

Rick


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of postmaster
Sent: Wednesday, November 21, 2001 4:06 AM
To: [EMAIL PROTECTED]
Subject: need to alter config


Hi guys hope you can help. Heres my config file.


dbhome /usr/local/squidGuard/db
logdir /usr/local/squidGuard/log

dest itsok  {
                urllist itsok/urls
                domainlist itsok/domains
                expressionlist itsok/expressions
}

dest porn   {
                domainlist porn/domains
                urllist    porn/urls
}

dest mylist {
                domainlist mylist/domains
                urllist    mylist/urls
                expressionlist mylist/expressions
}

dest ads        {
                domainlist ads/domains
                urllist    ads/urls
                expressionlist ads/expressions
}

acl {
                default {
                pass itsok !porn !mylist !ads all
                redirect http://localhost/banned.html
                }
}

this bans porn, bans mylist and bans ads but lets through itsok even if
on banned list.
what i want to do is have a different redirect for porn , mylist and
ads, so that if goin to
a porn site they are sent to http://localhost/porn.html and when they go
to mylist they
are sent to http://localhost/mylist.html and when they go to ads they ar
redirect to
 http://localhost/ads.html at the moment they are just sent to
http://localhost/banned.html for all banned sites.


Keep it up your all doin a grand job.
sparkz

Attachment: 1x1.gif
Description: GIF image

Reply via email to