Close
Social profiles

Reply MIME Type (rep_mime_type)

This will match the regular expression pattern with the Content-Type header that is originated in the server’s HTTP response. You can use the -i option to make the comparison case-insensitive.

acl aclname rep_mime_type [-i] regexp

Example

acl java_download rep_mime_type application/x-java
http_reply_access deny java_download

Request MIME Type (req_mime_type)

This will match the regular expression pattern with the Content-Type header that is originated in the server’s HTTP response. You can use the -i option to make the comparison case-insensitive. You can use this to track user uploads by using the req_mime_type key.

acl aclname req_mime_type [-i] regexp

Example

acl audio_file_upload req_mime_type -i ^audio/
http_reply_access deny audio_file_upload

Complete List of MIME types: http://reference.sitepoint.com/html/mime-types-full

 


3 thoughts on “Squid Proxy Server – ACL : req_mime_type”

  1. I simply want to tell you that I am just all new to blogging and site-building and actually liked you’re web-site. Probably I’m want to bookmark your website . You surely come with exceptional articles. Kudos for sharing your website page.

Leave a Reply

Your email address will not be published. Required fields are marked *

Close