Re: Bug in url_regex pattern matching?

From: Dirk Vleugels <[email protected]>
Date: Mon, 26 Jan 1998 16:15:57 +0100

Quoting Nick O'Brien (N.OBrien@canterbury.ac.uk):
> We are running Squid-1.NOVM.17 on Digital Unix 3.2C.
>
> Due to policy decisions at our site we have to ban access to particular
> web sites because of their content.
>
> What we have in our squid.conf are the lines:
>
> acl banned url_regex "/path/to/squid/etc/banned-list"
> ....
> ....
> ....
> http_access deny banned
>
> Now in the the banned-list file I had the line:
>
> http://www.sex*

This means match http://www.se(and 0 or more occurences of x).
I guess you mean:

acl banned url_regex http://www.sex.\.*

I don't know if this single quote is ok, i use only perl regexp's. The
quoted dot should match any char.

Cheers,

Dirk

-- 
Dirk Vleugels
 
FTP- & Proxy-Services                UUnet Deutschland GmbH
Tel. +49 231 972 00                  Emil-Figge-Strasse 80
Fax. +49 231 972 1180                44227 Dortmund, Germany
[email protected]              URL: http://www.uunet.de
Received on Mon Jan 26 1998 - 07:25:58 MST

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