Hi Hement
I run squid version 2.4.STABLE7 and squidGuard version 1.2.0 (Berkeley DB
3.3.11)
My squidGuard blocks porn sites in the url list. Here is my squidGuard.conf
file (a small part of it) I hope this can help you.
------------------ SNIP -----------------
# CONFIGURATION DIRECTORIES
dbhome /usr/share/squidGuard-1.2.0/blacklists # directory that contains the
url lists
logdir /var/log/squidGuard
# SOURCE ADDRESSES: (IP addresses of the users
# just an example of one
src lancomputers {
iplist lancomputers/ips
}
# DESTINATION CLASSES:
# only the porn class shown here: where squidGuard should look for the
# porn URLs and domain names that are banned.
dest porn {
domainlist porn/domains
urllist porn/urls
redirect http://www.google.ca
log /var/log/squidGuard/badurls.log
}
# ACLs (access control lists) - ip addresses defined above
lancomputers {
pass !porn all
redirect http://www.google.ca # or page of your choice
}
default {
pass none
redirect http://www.google.ca # or page of your choice
}
-------------------- END ---------------------
Please try this in your squidGuard.conf file and let me know if it works.
This setup works for my company.
Regards
A
-----Original Message-----
From: Hement Gopal [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 22, 2004 9:42 AM
To: squid-users
Subject: [squid-users] blocking porn sites ?
hi all
i am running Squid Cache: Version 2.4.STABLE1.
I've tried to implement a block to porn sites using the acls with the
following entries :
acl porn1 url_regex /usr/local/squid/etc/porn1
http_access deny porn1
http_access allow all
but it doesn't seem to work.....(no errors....i am just able to browse
to any site from the blocked url list)
can anyone assist?
rgds,
hement gopal