Re: [squid-users] blocking download of special extentions correction

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 23 May 2003 01:02:46 +0200

On Thursday 22 May 2003 16.14, dumpmail@gmx.net wrote:

> sorry wrong acl
> that was a tets which doesn't work.
>
> The right acl is this
>
> acl mp3_dl urlpath_regex -i '^http.*://.*/.*\.mp3\?*[^/]*$'

This can not work.. urlpath_regex only looks at the path component of
the URL, not the protocol. What you want is

  acl mp3_dl urlpath_regex \.mp3($|\?)

Regards
Henrik

-- 
Donations welcome if you consider my Free Squid support helpful.
https://www.paypal.com/xclick/business=hno%40squid-cache.org
If you need commercial Squid support or cost effective Squid or
firewall appliances please refer to MARA Systems AB, Sweden
http://www.marasystems.com/, info@marasystems.com
Received on Thu May 22 2003 - 17:02:27 MDT

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