Re: [squid-users] blocking audio/video/radio streaming

From: Amos Jeffries <squid3@dont-contact.us>
Date: Sat, 24 Nov 2007 03:43:32 +1300

Tarak Ranjan wrote:
>
> Hi,
> I want to block.online radio/audio/video streaming using squid .
> i have done this
> acl blockfiles urlpath_regex -i "/etc/squid/multimedia.files.acl"
> http_access deny blockfiles
>
> the content of the multimedia.files.acl
> \.[Aa][Vv][Ii]$
> \.[Mm][Pp][Gg]$
> \.[Mm][Pp][Ee][Gg]$
> \.[Mm][Pp]3$
> \.(afx|asf|asx|au|avi|divx|m3u|mov|mp2|mp3|mpeg|mp
> g|qt|ra|ram|rm|viv|vivo|vob|vqf|wav|wma|wmv|vbs|shs|pif)($|\?)
>
> but it's not working.....
>
> Thanks-----
> Tarak

This will only work on streaming sites who don't care about data theft.
Most websites protect their media content by serving it out of scripts
instead of D/L'able files. That change the URI to anything they can imagine.

What you want to do is block based on reply mime-type using
rep_mime_type ACL and http_reply_access permissions.
http://www.squid-cache.org/Versions/v2/2.6/acl.html
http://www.squid-cache.org/Versions/v2/2.6/http_reply_access.html

Amos
Received on Fri Nov 23 2007 - 07:43:49 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 01 2007 - 12:00:02 MST