[squid-users] Re: Allow streaming for one particular srcdomain

From: paulopastoriza <paulopastoriza_at_gmail.com>
Date: Sun, 10 Jul 2011 14:55:08 -0700 (PDT)

Hi,

# acl aclname rep_mime_type mime-type ...
# regex match against the mime type of the reply received by
# squid. Can be used to detect file download or some
# types HTTP tunneling requests.
*# NOTE: This has no effect in http_access rules. It only has
# effect in rules that affect the reply data stream such as
# http_reply_access.*

acl oksource srcdomain .msn.com .myvideo.com

acl media_files rep_mime_type -i ^audio/ ^video/

http_reply_access allow oksource
http_reply_access deny media_files

http_reply_access allows you to use user groups (proxy_auth, ips, ldap) and
time.
Sample:
#http_reply_access deny srcUser time mimeType

Paulo Pastoriza

--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Allow-streaming-for-one-particular-srcdomain-tp1027416p3658303.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Sun Jul 10 2011 - 21:55:09 MDT

This archive was generated by hypermail 2.2.0 : Mon Jul 11 2011 - 12:00:02 MDT