RE: Filter out Sex... Sites

From: Don Brown <>
Date: Fri, 23 Oct 1998 08:52:28 -0400

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
acl all src
acl mercury src
acl pluto src
acl sexsites url_regex "/var/squid/etc/adultdomain.dat"
acl SSL_ports port 443 563
acl Dangerous_ports port 7 9 19

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 []
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:

sex file:



Sexta-feira, 16 Outubro 1998, you wrote:

MH> Hi,
MH> in the docs i figure out, how to filter out adresses like
MH> or
MH> But can somebody told me how to filter out
MH> all adresses including words like or ...girl...
MH> i'm very thankfull for one or two example config-lines

MH> Bye

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