ACL implementation

From: Evaghelos Tsiotsios <etsiot@dont-contact.us>
Date: Fri, 24 Apr 1998 19:23:21 +0300

Hi all,

I made a first try to implement an access control policy for porn sites
that does not seem to work.
I setup the following in squid.conf
------------
acl sexy1 url_regex "/squid1120/etc/sexy1.txt"
acl sexy2 dstdomain "/squid1120/etc/sexy2.txt"

http_access deny sexy1
http_access deny sexy2
http_access allow ournet
http_access deny all

--------
and created sexy1.txt with strings like this one

'.*sex.*'
(tried different variations of the regex)

and sexy2.txt like these:
playboy.com
sexplaza.com

Squid works nicely with acl sexy2 (the whole domain) but will ignore
sexy1.
I tried acl sexy1 with urlpath_regex but it didn't work either.

I don't exactly know regexps so is there any good hint about this?

Thanks.
Received on Fri Apr 24 1998 - 09:56:45 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:39:56 MST