Answer the question
In order to leave comments, you need to log in
How to block video content using squid?
Hello.
I have windows 7 x64 on my PC. Internet through a router.
I installed and started squid 2.5.7 according to the instructions.
When blocking all content http_access deny all everything works, it blocks outputs what would have turned to the webmaster.
Trying to block video content
acl cont-type-video rep_mime_type Content-Type video
acl cont-type-audio rep_mime_type Content-Type audio
acl inetradio_rep rep_mime_type ^application/x-mms-framed$ ^application/vnd.ms.wms-hdr.asfv$
acl inetradio_req req_mime_type ^application/x-mms-framed$ ^application/vnd.ms.wms-hdr.asfv$
acl StreamMedia rep_mime_type ^.*video.*
acl StreamMedia rep_mime_type ^.*audio.*
http_access deny inetradio_req
http_reply_access deny inetradio_rep
http_reply_access deny StreamMedia
http_reply_access deny cont-type-video
http_reply_access deny cont-type-audio
Answer the question
In order to leave comments, you need to log in
I never tried to block by mime-type, I always did it in a simple way. A file is created where the types of video files are registered:
\.mp[34eg]?[2g]?[4]?$
\.avi.?$
\.mov.?$
\.flv.?$
\.wmv.?$
\.3gp.?$
\.mkv.?$
\.ogg.?$
acl multimedia url_regex -i "/usr/local/squid/conf/policy/multimedia.url"
http_access deny multimedia
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question