Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to block a file type (video/*) in Squid (Cache) instead of blocking individual extensions.

Is it something possible to do?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Create an ACL of the type rep_mime_type and set it to your regex. Then, use the http_reply_access directive to block access.

acl deny_rep_mime_anyvideo rep_mime_type video/.*
http_reply_access deny deny_rep_mime_anyvideo
share|improve this answer
    
thanks, that did that trick :) –  alexus Feb 3 '12 at 0:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.