SQUID simple blacklist ????

I am trying to add a few sites to be blocked by all users (i.e. hotmail, msn, etc.) without having to buy surfprotection as that would be a bit overkill for the job at hand.

I have added the following to the bottom of the /var/chroot-squid/etc/squid.conf-default file

--START--
acl badsites url_regex -i "/etc/badsites.txt"
http_access deny badsites
--STOP--


badsites.txt contains
--START--
hotmail
msn
--STOP--
and lives in the same folder as squid.conf

I am unsure of the format of the badsites.txt file, does it just contain words on individual lines that will be matched within the URL? 

If you use /etc/rc.d/squid restart then squid.conf is not updated and no errors are displayed and obviously no sites are blocked. Even if the path is set to a non existant path there are still no errors reported.

However, if you use webadmin to stop/start the http proxy then the squid.conf updates but the sites are still not blocked.

Any ideas?  
Parents Reply Children
No Data