Jump to content



Photo

blocking videos with squid?


  • Please log in to reply
No replies to this topic

#1 Original Poster

Original Poster

    Systems Developer

  • Tech Issues Solved: 1
  • Joined: 15-July 08
  • Location: my room
  • OS: windows 7/8, Kali, ubuntu, OSx 10.9
  • Phone: Android

Posted 08 August 2014 - 15:36

hello! 

 

I am trying to block videos with squid from streaming (which I have done yay) but here is the problem, I want my media server to still work but it also blocks them. i am pretty sure it is possible to exclude my local domain from these rules but I am having a little trouble on doing this...

 

I tried putting my domain in as allow all as the first rule so it is always allowed no matter what but it did not appear to work :( and videos are still getting blocked below is my blocked media i cannot show you the rest of the config but trust me all the media is blocked after the domain :p any suggestions?

 

 

 

acl media rep_mime_type ^application/vnd.ms.wms-hdr.asfv1

acl media rep_mime_type ^application/x-fcs

acl media rep_mime_type ^application/x-mms-framed

acl media rep_mime_type ^video/x-ms-asf

#acl media rep_mime_type ^audio/mpeg

#acl media rep_mime_type ^audio/x-scpls

acl media rep_mime_type ^video/x-flv

acl media rep_mime_type ^video/mpeg4

acl media rep_mime_type ms-hdr

acl media rep_mime_type x-fcs

acl mediapr urlpath_regex \.flv(\?.*)?$

acl mediapr urlpath_regex -i \.(avi|mp4|mov|m4v|mkv|flv)(\?.*)?$

acl mediapr urlpath_regex -i \.(mpg|mpeg|avi|mov|flv|wmv|mkv|rmvb)(\?.*)?$