Re: [squid-users] Trouble limiting access to rutube

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sat, 17 Mar 2012 01:28:50 +1300

On 17/03/2012 12:34 a.m., awarecons wrote:
> acl rutube dstdomain .rutube.ru .vk.com .vkontakte.ru
> acl rutube_streams rep_header Content-Type -i application/x-shockwave-flash
> http_reply_access deny rutube rutube_streams
>
> acl rutube_Files url_regex -i \player.swf$
> http_access deny rutube rutube_Files
>
> But there is still question - how cut off .iflv instead of cutting player.swf?

step 1) Use urlpath_regex instead of url_regex.

step 2) Start it with "^" to anchor it to the path beginning.

step 3) Add proper escaping on the URL dot. Making it "\."

step 4) Remove the "$" end-anchor which is saying only catch the request
when there is *no* query string.

step 5) find a basic how-to on regex patterns and start reading.

Amos
Received on Fri Mar 16 2012 - 12:29:00 MDT

This archive was generated by hypermail 2.2.0 : Fri Mar 16 2012 - 12:00:04 MDT