I've tried doing this, but when I use it, I get denied to everywhere.
I've setup the deny, but not the "notsex" section, as I only want to
block the adult related sites. Can someone tell me what I've got
configured wrong? Here's the acl section from my squid.conf file:
-----------------------------------
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl all src 0.0.0.0/0.0.0.0
acl mercury src 12.63.229.10/255.255.0.0
acl pluto src 12.63.229.6/255.255.0.0
acl sexsites url_regex "/var/squid/etc/adultdomain.dat"
acl SSL_ports port 443 563
acl Dangerous_ports port 7 9 19
acl CONNECT method CONNECT
http_access allow manager localhost
http_access allow manager mercury
http_access allow manager pluto
http_access deny manager
# deny access to adult sites
http_access deny sexsites all
# Allow everything else
http_access allow all
# Reply to all ICP queries we receive
icp_access allow all
-----------------------------------
Don Brown
-----Original Message-----
From: Orso [mailto:orso@pop.hsbcbamerindus.com.br]
Sent: Friday, October 16, 1998 7:54 AM
To: 'Squid-List'; Michael Hamm
Subject: Re: Filter out Sex... Sites
Hello Michael,
You can use something like this:
acl sex url_regex "/usr/local/squid/etc/sex"
acl notsex url_regex "/usr/local/squid/etc/notsex"
http_access allow notsex all
http_access deny sex all
notsex file:
.*.msexchange.*
.*.msexcel.*
.*freetown.*
.*geek-girls.*
.*scsext.*
sex file:
.*.(praline|eroticworld|orion).de
.*.(theorgy|penthousemag|playboy|1stsex|lolita|sexpix|sexshop).*
.*.(smutland|hustler.onprod|hustler2.onprod|cybervixen|asiansex).*
<<snip>>
ftp.netcom.com/pub/ac/acott
www.tvtoday.de:9600
Bye
Pedro
Sexta-feira, 16 Outubro 1998, you wrote:
MH> Hi,
MH> in the docs i figure out, how to filter out adresses like
MH> playboy.com or sex.com.
MH> But can somebody told me how to filter out
MH> all adresses including words like ...sex... or ...girl...
MH> i'm very thankfull for one or two example config-lines
MH> Bye
MH>
------------------------------------------------------------------------
-------
MH> MfG Michael Hamm
Received on Fri Oct 23 1998 - 07:04:09 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:42:45 MST