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