Problem:  I want to block domain foo.com, but allow access to foo.com/bar/

What I've tried:
squidGuard.conf

dest    allows{
 domainlist allows/domains
 urllist   allows/urls
 expressionlist allows/expressions
        logfile /var/log/sg/allows
}


dest blocks{
 domainlist blocks/domains
 urllist   blocks/urls
 expressionlist blocks/expressions
        logfile /var/log/sg/blocks
}
 
acl {
 default { 
   pass allows !blocks all
   redirect http://somedomain.com/blocked.cgi?someargs
        }
 }



allows/urls

foo.com/bar/



allows/domains

allowme.com


allows/expressions



blocks/domains
foo.com


blocks/urls
blockme.com

blocks/expressions
boo*(b|by|bies)





testing squidGuard with  "http://foo.com/bar/";

Request(default/blocks/-) http://foo.com/bar  /- - GET


testing squidGuard with "http://foo.com/";

Request(default/blocks/-) http://foo.com/  /- - GET


The allow isn't working. Grepping for the allow matches the db file...(if I 
remove the db files and let squidGuard run off of the text files, it still 
works the same)




Even when squidGuard -C all -c /path/to/squidGuard.conf   is run.


Am I doing something wrong...?

squidGuard 1.2.0-1
squid 2.5.stable8-2
libdb1-compat libdb2 libdb3 libdb4.1 libdb4.2   are all installed on this 
debian woody system.
Kernel 2.4.27

is there a way I can tell which version of the libdb is being used by 
squidGuard?  (I suspect libdb3)  Is there a possible issue with the libdb.



Reply via email to