[squid-users] deny uploads acl not working

robert k Wild robertkwild at gmail.com
Thu Oct 28 16:50:40 UTC 2021


found out i need to block

application/json

but if i do that it blocks teams aswell as thats a json, maybe i will try
this

request body max size

but theres another one i can use called

request header max size

whats the best one to use?

On Thu, 28 Oct 2021 at 17:05, robert k Wild <robertkwild at gmail.com> wrote:

> hi all,
>
> trying to deny uploads but its not working, heres my config below
>
> #deny up MIME types
> acl upmime req_mime_type "/usr/local/squid/etc/mimedeny.txt"
>
> #allow special URL paths
> acl special_url url_regex "/usr/local/squid/etc/urlspecial.txt"
>
> #deny down MIME types
> acl downmime rep_mime_type "/usr/local/squid/etc/mimedeny.txt"
>
> http_access deny upmime
> http_reply_access allow special_url
> http_reply_access deny downmime
>
> in my mimedeny.txt
>
> application/octet-stream
> application/x-msi
> application/zip
> application/x-7z-compressed
> application/vnd.ms-cab-compressed
> application/x-msdownload
> application/x-iso9660-image
> application/x-tar
>
> but the deny upmime isnt working as on when i try to upload an exe on
> teams website it allows me to upload it
>
> any ideas,
>
> thanks,
> rob
>
> --
> Regards,
>
> Robert K Wild.
>


-- 
Regards,

Robert K Wild.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20211028/4821976e/attachment.htm>


More information about the squid-users mailing list