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

From: awarecons <awarecons_at_gmail.com>
Date: Fri, 16 Mar 2012 19:21:06 +0400

It doesn't matter, `cause request is made so that available to Squid
is http://rutube.ru/player.swf? string only. There's nothing in
access.log pointing to .iflv-file is being requested by embedded
java-script. The only GET is about '.../player.swf?'

More efficient is:
acl GET method GET
acl rutube_url urlpath_regex -i /player.swf

http_access deny GET rutube_url

2012/3/16 Amos Jeffries <squid3_at_treenet.co.nz>:
> 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 - 15:21:14 MDT

This archive was generated by hypermail 2.2.0 : Sat Mar 17 2012 - 12:00:03 MDT