This is driving me nuts I have the line 'playboy.com' in my domain list name porn.  I 
have disabled all of my other lists for debuging.  I have been testing from the 
command line.  When I enter 'playboy.com' I get the redirection URL as is expected.  
When I enter 'www.playboy.com' It does not work.  The confusing part is that I also 
tried 'playboyusa.com' and get redirected, when I do a 'www.playboyusa.com' I also get 
redirected to the block.  Does anyone have any hints cause this is driving me crazy.  
Is there a bug or something in squidguard?  What should I test.  I am unable to 
replicate this behavior for any other domain and I have tried 40+ requests.  I some 
excerpts of my testing session below.  So far as I can tell I am doing everything 
right.

It is a debian linux 3.0 system running all the stock debian packages.

Any hints?

Thanks
Chris Francy

----------------------

zetkin:/var/lib/squidguard/db# grep playboy 
/var/lib/squidguard/db/blacklists/porn/domains
.......
playboy3x.com
chatplayboyquick.com
playboyevents.com
banners.playboystore.com
cyber.playboy.com
playboy.com
sexplayboy.net
playboy-centerfold.com
playboycorp.com
playboymovies.com
playboy-cam.de
playboymag.net
playboyz.org
playboyusa.com
.......

squidGuard -d
2003-10-03 16:42:05 [24319] init domainlist 
/var/lib/squidguard/db/blacklists/porn/domains
2003-10-03 16:42:05 [24319] loading dbfile 
/var/lib/squidguard/db/blacklists/porn/domains.db
2003-10-03 16:42:05 [24319] squidGuard 1.2.0 started (1065224525.800)
2003-10-03 16:42:05 [24319] squidGuard ready for requests (1065224525.803)
http://playboy.com/ 127.0.0.1/- - GET
http://127.0.0.1:8000/ERR_ACCESS_DENIED.html?clientaddr=127.0.0.1&clientname=&clientuser=&clientgroup=default&url=http://playboy.com/
 127.0.0.1/- - GET

http://www.playboy.com/ 127.0.0.1/- - GET

http://playboy.com/ 127.0.0.1/- - GET
http://127.0.0.1:8000/ERR_ACCESS_DENIED.html?clientaddr=127.0.0.1&clientname=&clientuser=&clientgroup=default&url=http://playboy.com/
 127.0.0.1/- - GET

http://playboyusa.com/ 127.0.0.1/- - GET
http://127.0.0.1:8000/ERR_ACCESS_DENIED.html?clientaddr=127.0.0.1&clientname=&clientuser=&clientgroup=default&url=http://playboyusa.com/
 127.0.0.1/- - GET

http://www.playboyusa.com/ 127.0.0.1/- - GET
http://127.0.0.1:8000/ERR_ACCESS_DENIED.html?clientaddr=127.0.0.1&clientname=&clientuser=&clientgroup=default&url=http://www.playboyusa.com/
 127.0.0.1/- - GET

zetkin:/var/lib/squidguard/db# more /etc/squid/squidGuard.conf
#----------------------------------------------------------------
#   SquidGuard CONFIGURATION FILE

dbhome /var/lib/squidguard/db
logdir /var/log/squid

dest blacklists_porn {
    domainlist blacklists/porn/domains
}

src admhosts {
    ip 172.16.1.1/30
}

acl {
   admhosts {
       pass all
   }
   default {

       pass !blacklists_porn all
       redirect 
http://127.0.0.1:8000/ERR_ACCESS_DENIED.html?clientaddr=%a&clientname=%n&clientuser=%i&clientgro
up=%s&url=%u
   }
}

Reply via email to